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
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TextDetectionModel_EAST
(long addr) TextDetectionModel_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) protected void
finalize()
float
Get the detection confidence thresholdfloat
Get 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, detectTextRectangles
Methods inherited from class org.opencv.dnn.Model
getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTarget
-
Constructor Details
-
TextDetectionModel_EAST
protected TextDetectionModel_EAST(long addr) -
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 ofmodel
andconfig
arguments 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 ofmodel
andconfig
arguments 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
-
finalize
- Overrides:
finalize
in classTextDetectionModel
- Throws:
Throwable
-