public class TextDetectionModel_DB extends TextDetectionModel
| Constructor and Description |
|---|
TextDetectionModel_DB(Net network)
Create text detection algorithm from deep learning network.
|
TextDetectionModel_DB(java.lang.String model)
Create text detection model from network represented in one of the supported formats.
|
TextDetectionModel_DB(java.lang.String model,
java.lang.String config)
Create text detection model from network represented in one of the supported formats.
|
| Modifier and Type | Method and Description |
|---|---|
static TextDetectionModel_DB |
__fromPtr__(long addr) |
float |
getBinaryThreshold() |
int |
getMaxCandidates() |
float |
getPolygonThreshold() |
double |
getUnclipRatio() |
TextDetectionModel_DB |
setBinaryThreshold(float binaryThreshold) |
TextDetectionModel_DB |
setMaxCandidates(int maxCandidates) |
TextDetectionModel_DB |
setPolygonThreshold(float polygonThreshold) |
TextDetectionModel_DB |
setUnclipRatio(double unclipRatio) |
detect, detect, detectTextRectangles, detectTextRectanglesgetNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTargetpublic TextDetectionModel_DB(Net network)
network - Net object.public TextDetectionModel_DB(java.lang.String model)
model and config arguments does not matter.model - Binary file contains trained weights.public TextDetectionModel_DB(java.lang.String model,
java.lang.String config)
model and config arguments does not matter.model - Binary file contains trained weights.config - Text file contains network configuration.public static TextDetectionModel_DB __fromPtr__(long addr)
public float getBinaryThreshold()
public int getMaxCandidates()
public float getPolygonThreshold()
public double getUnclipRatio()
public TextDetectionModel_DB setBinaryThreshold(float binaryThreshold)
public TextDetectionModel_DB setMaxCandidates(int maxCandidates)
public TextDetectionModel_DB setPolygonThreshold(float polygonThreshold)
public TextDetectionModel_DB setUnclipRatio(double unclipRatio)
Generated on 2023-06-28 12:47:21 / OpenCV 4.8.0