Package org.opencv.dnn
Class TextDetectionModel_EAST
java.lang.Object
org.opencv.dnn.Model
org.opencv.dnn.TextDetectionModel
org.opencv.dnn.TextDetectionModel_EAST
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 Summary
ConstructorsConstructorDescriptionTextDetectionModel_EAST(String model) Create text detection model from network represented in one of the supported formats.TextDetectionModel_EAST(String model, String config) Create text detection model from network represented in one of the supported formats.TextDetectionModel_EAST(Net network) Create text detection algorithm from deep learning network -
Method Summary
Modifier and TypeMethodDescriptionstatic TextDetectionModel_EAST__fromPtr__(long addr) floatGet the detection confidence thresholdfloatGet the detection confidence thresholdsetConfidenceThreshold(float confThreshold) Set the detection confidence thresholdsetNMSThreshold(float nmsThreshold) Set the detection NMS filter thresholdMethods inherited from class org.opencv.dnn.TextDetectionModel
detect, detect, detectTextRectangles, detectTextRectanglesMethods inherited from class org.opencv.dnn.Model
enableWinograd, getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setOutputNames, setPreferableBackend, setPreferableTarget
-
Constructor Details
-
TextDetectionModel_EAST
Create text detection algorithm from deep learning network- Parameters:
network- Net object
-
TextDetectionModel_EAST
Create text detection model from network represented in one of the supported formats. An order ofmodelandconfigarguments does not matter.- Parameters:
model- Binary file contains trained weights.config- Text file contains network configuration.
-
TextDetectionModel_EAST
Create text detection model from network represented in one of the supported formats. An order ofmodelandconfigarguments does not matter.- Parameters:
model- Binary file contains trained weights.
-
-
Method Details
-
__fromPtr__
-
setConfidenceThreshold
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
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
-