Package org.opencv.dnn
Class TextDetectionModel_EAST
- java.lang.Object
- 
- org.opencv.dnn.Model
- 
- org.opencv.dnn.TextDetectionModel
- 
- org.opencv.dnn.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 SummaryConstructors Modifier Constructor Description protectedTextDetectionModel_EAST(long addr)TextDetectionModel_EAST(java.lang.String model)Create text detection model from network represented in one of the supported formats.TextDetectionModel_EAST(java.lang.String model, java.lang.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 SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextDetectionModel_EAST__fromPtr__(long addr)protected voidfinalize()floatgetConfidenceThreshold()Get the detection confidence thresholdfloatgetNMSThreshold()Get the detection confidence thresholdTextDetectionModel_EASTsetConfidenceThreshold(float confThreshold)Set the detection confidence thresholdTextDetectionModel_EASTsetNMSThreshold(float nmsThreshold)Set the detection NMS filter threshold- 
Methods inherited from class org.opencv.dnn.TextDetectionModeldetect, detect, detectTextRectangles, detectTextRectangles
 - 
Methods inherited from class org.opencv.dnn.ModelenableWinograd, getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTarget
 
- 
 
- 
- 
- 
Constructor Detail- 
TextDetectionModel_EASTprotected TextDetectionModel_EAST(long addr) 
 - 
TextDetectionModel_EASTpublic TextDetectionModel_EAST(Net network) Create text detection algorithm from deep learning network- Parameters:
- network- Net object
 
 - 
TextDetectionModel_EASTpublic TextDetectionModel_EAST(java.lang.String model, java.lang.String config)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_EASTpublic TextDetectionModel_EAST(java.lang.String model) 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 Detail- 
__fromPtr__public static TextDetectionModel_EAST __fromPtr__(long addr) 
 - 
setConfidenceThresholdpublic TextDetectionModel_EAST setConfidenceThreshold(float confThreshold) Set the detection confidence threshold- Parameters:
- confThreshold- A threshold used to filter boxes by confidences
- Returns:
- automatically generated
 
 - 
getConfidenceThresholdpublic float getConfidenceThreshold() Get the detection confidence threshold- Returns:
- automatically generated
 
 - 
setNMSThresholdpublic TextDetectionModel_EAST setNMSThreshold(float nmsThreshold) Set the detection NMS filter threshold- Parameters:
- nmsThreshold- A threshold used in non maximum suppression
- Returns:
- automatically generated
 
 - 
getNMSThresholdpublic float getNMSThreshold() Get the detection confidence threshold- Returns:
- automatically generated
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- TextDetectionModel
- Throws:
- java.lang.Throwable
 
 
- 
 
-