OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.DnnModule.TextDetectionModel_DB Class Reference

This class represents high-level API for text detection DL networks compatible with DB model. More...

Inheritance diagram for OpenCVForUnity.DnnModule.TextDetectionModel_DB:
OpenCVForUnity.DnnModule.TextDetectionModel OpenCVForUnity.DnnModule.Model OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

 TextDetectionModel_DB (Net network)
 Create text detection algorithm from deep learning network. More...
 
 TextDetectionModel_DB (string model, string config)
 Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter. More...
 
 TextDetectionModel_DB (string model)
 Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter. More...
 
TextDetectionModel_DB setBinaryThreshold (float binaryThreshold)
 
float getBinaryThreshold ()
 
TextDetectionModel_DB setPolygonThreshold (float polygonThreshold)
 
float getPolygonThreshold ()
 
TextDetectionModel_DB setUnclipRatio (double unclipRatio)
 
double getUnclipRatio ()
 
TextDetectionModel_DB setMaxCandidates (int maxCandidates)
 
int getMaxCandidates ()
 
- Public Member Functions inherited from OpenCVForUnity.DnnModule.TextDetectionModel
void detect (Mat frame, List< MatOfPoint > detections, MatOfFloat confidences)
 Performs detection. More...
 
void detect (Mat frame, List< MatOfPoint > detections)
 
void detectTextRectangles (Mat frame, MatOfRotatedRect detections, MatOfFloat confidences)
 Performs detection. More...
 
void detectTextRectangles (Mat frame, MatOfRotatedRect detections)
 
- Public Member Functions inherited from OpenCVForUnity.DnnModule.Model
IntPtr getNativeObjAddr ()
 
 Model (string model, string config)
 Create model from deep learning network represented in one of the supported formats. An order of model and config arguments does not matter. More...
 
 Model (string model)
 Create model from deep learning network represented in one of the supported formats. An order of model and config arguments does not matter. More...
 
 Model (Net network)
 Create model from deep learning network. More...
 
Model setInputSize (Size size)
 Set input size for frame. More...
 
Model setInputSize (int width, int height)
 
Model setInputMean (Scalar mean)
 Set mean value for frame. More...
 
Model setInputScale (Scalar scale)
 Set scalefactor value for frame. More...
 
Model setInputCrop (bool crop)
 Set flag crop for frame. More...
 
Model setInputSwapRB (bool swapRB)
 Set flag swapRB for frame. More...
 
void setInputParams (double scale, Size size, Scalar mean, bool swapRB, bool crop)
 Set preprocessing parameters for frame. More...
 
void setInputParams (double scale, Size size, Scalar mean, bool swapRB)
 Set preprocessing parameters for frame. More...
 
void setInputParams (double scale, Size size, Scalar mean)
 Set preprocessing parameters for frame. More...
 
void setInputParams (double scale, Size size)
 Set preprocessing parameters for frame. More...
 
void setInputParams (double scale)
 Set preprocessing parameters for frame. More...
 
void setInputParams ()
 Set preprocessing parameters for frame. More...
 
void predict (Mat frame, List< Mat > outs)
 Given the input frame, create input blob, run net and return the output blobs. More...
 
Model setPreferableBackend (int backendId)
 
Model setPreferableTarget (int targetId)
 
Model enableWinograd (bool useWinograd)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new TextDetectionModel_DB __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DnnModule.TextDetectionModel
static new TextDetectionModel __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DnnModule.Model
static Model __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

This class represents high-level API for text detection DL networks compatible with DB model.

Related publications: [liao2020real] Paper: https://arxiv.org/abs/1911.08947 For more information about the hyper-parameters setting, please refer to https://github.com/MhLiao/DB

Configurable parameters:

Constructor & Destructor Documentation

◆ TextDetectionModel_DB() [1/3]

OpenCVForUnity.DnnModule.TextDetectionModel_DB.TextDetectionModel_DB ( Net  network)

Create text detection algorithm from deep learning network.

Parameters
[in]networkNet object.

◆ TextDetectionModel_DB() [2/3]

OpenCVForUnity.DnnModule.TextDetectionModel_DB.TextDetectionModel_DB ( string  model,
string  config 
)

Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter.

Parameters
[in]modelBinary file contains trained weights.
[in]configText file contains network configuration.

◆ TextDetectionModel_DB() [3/3]

OpenCVForUnity.DnnModule.TextDetectionModel_DB.TextDetectionModel_DB ( string  model)

Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter.

Parameters
[in]modelBinary file contains trained weights.
[in]configText file contains network configuration.

Member Function Documentation

◆ __fromPtr__()

static new TextDetectionModel_DB OpenCVForUnity.DnnModule.TextDetectionModel_DB.__fromPtr__ ( IntPtr  addr)
static

◆ Dispose()

override void OpenCVForUnity.DnnModule.TextDetectionModel_DB.Dispose ( bool  disposing)
protectedvirtual

◆ getBinaryThreshold()

float OpenCVForUnity.DnnModule.TextDetectionModel_DB.getBinaryThreshold ( )

◆ getMaxCandidates()

int OpenCVForUnity.DnnModule.TextDetectionModel_DB.getMaxCandidates ( )

◆ getPolygonThreshold()

float OpenCVForUnity.DnnModule.TextDetectionModel_DB.getPolygonThreshold ( )

◆ getUnclipRatio()

double OpenCVForUnity.DnnModule.TextDetectionModel_DB.getUnclipRatio ( )

◆ setBinaryThreshold()

TextDetectionModel_DB OpenCVForUnity.DnnModule.TextDetectionModel_DB.setBinaryThreshold ( float  binaryThreshold)

◆ setMaxCandidates()

TextDetectionModel_DB OpenCVForUnity.DnnModule.TextDetectionModel_DB.setMaxCandidates ( int  maxCandidates)

◆ setPolygonThreshold()

TextDetectionModel_DB OpenCVForUnity.DnnModule.TextDetectionModel_DB.setPolygonThreshold ( float  polygonThreshold)

◆ setUnclipRatio()

TextDetectionModel_DB OpenCVForUnity.DnnModule.TextDetectionModel_DB.setUnclipRatio ( double  unclipRatio)

The documentation for this class was generated from the following file: