Class TextDetectionModel_EAST


  • public class TextDetectionModel_EAST
    extends TextDetectionModel
    This class represents high-level API for text detection DL networks compatible with EAST model. Configurable parameters: - (float) confThreshold - used to filter boxes by confidences, default: 0.5f - (float) nmsThreshold - used in non maximum suppression, default: 0.0f
    • Constructor Detail

      • TextDetectionModel_EAST

        protected TextDetectionModel_EAST​(long addr)
      • TextDetectionModel_EAST

        public TextDetectionModel_EAST​(Net network)
        Create text detection algorithm from deep learning network
        Parameters:
        network - Net object
      • TextDetectionModel_EAST

        public TextDetectionModel_EAST​(String model,
                                       String config)
        Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter.
        Parameters:
        model - Binary file contains trained weights.
        config - Text file contains network configuration.
      • TextDetectionModel_EAST

        public TextDetectionModel_EAST​(String model)
        Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter.
        Parameters:
        model - Binary file contains trained weights.
    • Method Detail

      • setConfidenceThreshold

        public TextDetectionModel_EAST setConfidenceThreshold​(float confThreshold)
        Set the detection confidence threshold
        Parameters:
        confThreshold - A threshold used to filter boxes by confidences
        Returns:
        automatically generated
      • getConfidenceThreshold

        public float getConfidenceThreshold()
        Get the detection confidence threshold
        Returns:
        automatically generated
      • setNMSThreshold

        public TextDetectionModel_EAST setNMSThreshold​(float nmsThreshold)
        Set the detection NMS filter threshold
        Parameters:
        nmsThreshold - A threshold used in non maximum suppression
        Returns:
        automatically generated
      • getNMSThreshold

        public float getNMSThreshold()
        Get the detection confidence threshold
        Returns:
        automatically generated