public class TextDetectionModel_DB extends TextDetectionModel
| Modifier | Constructor and Description |
|---|---|
protected |
TextDetectionModel_DB(long addr) |
|
TextDetectionModel_DB(Net network)
Create text detection algorithm from deep learning network.
|
|
TextDetectionModel_DB(String model)
Create text detection model from network represented in one of the supported formats.
|
|
TextDetectionModel_DB(String model,
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) |
protected void |
finalize() |
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, detectTextRectanglesenableWinograd, getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setOutputNames, setPreferableBackend, setPreferableTargetprotected TextDetectionModel_DB(long addr)
public TextDetectionModel_DB(Net network)
network - Net object.public TextDetectionModel_DB(String model, String config)
model and config arguments does not matter.model - Binary file contains trained weights.config - Text file contains network configuration.public TextDetectionModel_DB(String model)
model and config arguments does not matter.model - Binary file contains trained weights.public static TextDetectionModel_DB __fromPtr__(long addr)
public TextDetectionModel_DB setBinaryThreshold(float binaryThreshold)
public float getBinaryThreshold()
public TextDetectionModel_DB setPolygonThreshold(float polygonThreshold)
public float getPolygonThreshold()
public TextDetectionModel_DB setUnclipRatio(double unclipRatio)
public double getUnclipRatio()
public TextDetectionModel_DB setMaxCandidates(int maxCandidates)
public int getMaxCandidates()
protected void finalize()
throws Throwable
finalize in class TextDetectionModelThrowableCopyright © 2025. All rights reserved.