OpenCV for Unity 2.6.5
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.DnnModule.TextDetectionModel_EAST Class Reference

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

Public Member Functions

 TextDetectionModel_EAST (Net network)
 Create text detection algorithm from deep learning network.
 
 TextDetectionModel_EAST (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.
 
 TextDetectionModel_EAST (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.
 
float getConfidenceThreshold ()
 Get the detection confidence threshold.
 
float getNMSThreshold ()
 Get the detection confidence threshold.
 
TextDetectionModel_EAST setConfidenceThreshold (float confThreshold)
 Set the detection confidence threshold.
 
TextDetectionModel_EAST setNMSThreshold (float nmsThreshold)
 Set the detection NMS filter threshold.
 
- Public Member Functions inherited from OpenCVForUnity.DnnModule.TextDetectionModel
void detect (Mat frame, List< MatOfPoint > detections)
 
void detect (Mat frame, List< MatOfPoint > detections, MatOfFloat confidences)
 Performs detection.
 
void detectTextRectangles (Mat frame, MatOfRotatedRect detections)
 
void detectTextRectangles (Mat frame, MatOfRotatedRect detections, MatOfFloat confidences)
 Performs detection.
 
- Public Member Functions inherited from OpenCVForUnity.DnnModule.Model
 Model (Net network)
 Create model from deep learning network.
 
 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.
 
 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.
 
Model enableWinograd (bool useWinograd)
 
IntPtr getNativeObjAddr ()
 
void predict (Mat frame, List< Mat > outs)
 Given the input frame, create input blob, run net and return the output blobs.
 
Model setInputCrop (bool crop)
 Set flag crop for frame.
 
Model setInputMean (in Vec4d mean)
 Set mean value for frame.
 
Model setInputMean (in(double v0, double v1, double v2, double v3) mean)
 Set mean value for frame.
 
Model setInputMean (Scalar mean)
 Set mean value for frame.
 
void setInputParams ()
 Set preprocessing parameters for frame.
 
void setInputParams (double scale)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, in Vec2d size)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, in Vec2d size, in Vec4d mean)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, in Vec2d size, in Vec4d mean, bool swapRB)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, in Vec2d size, in Vec4d mean, bool swapRB, bool crop)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, in(double width, double height) size)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, in(double width, double height) size, in(double v0, double v1, double v2, double v3) mean)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, in(double width, double height) size, in(double v0, double v1, double v2, double v3) mean, bool swapRB)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, in(double width, double height) size, in(double v0, double v1, double v2, double v3) mean, bool swapRB, bool crop)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, Size size)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, Size size, Scalar mean)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, Size size, Scalar mean, bool swapRB)
 Set preprocessing parameters for frame.
 
void setInputParams (double scale, Size size, Scalar mean, bool swapRB, bool crop)
 Set preprocessing parameters for frame.
 
Model setInputScale (in Vec4d scale)
 Set scalefactor value for frame.
 
Model setInputScale (in(double v0, double v1, double v2, double v3) scale)
 Set scalefactor value for frame.
 
Model setInputScale (Scalar scale)
 Set scalefactor value for frame.
 
Model setInputSize (in Vec2d size)
 Set input size for frame.
 
Model setInputSize (in(double width, double height) size)
 Set input size for frame.
 
Model setInputSize (int width, int height)
 
Model setInputSize (Size size)
 Set input size for frame.
 
Model setInputSwapRB (bool swapRB)
 Set flag swapRB for frame.
 
Model setOutputNames (List< string > outNames)
 Set output names for frame.
 
Model setPreferableBackend (int backendId)
 
Model setPreferableTarget (int targetId)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new TextDetectionModel_EAST __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.DnnModule.TextDetectionModel
- Protected Member Functions inherited from OpenCVForUnity.DnnModule.Model
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.DnnModule.TextDetectionModel
- Package Functions inherited from OpenCVForUnity.DnnModule.Model
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- 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 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 & Destructor Documentation

◆ TextDetectionModel_EAST() [1/3]

OpenCVForUnity.DnnModule.TextDetectionModel_EAST.TextDetectionModel_EAST ( Net network)

Create text detection algorithm from deep learning network.

◆ TextDetectionModel_EAST() [2/3]

OpenCVForUnity.DnnModule.TextDetectionModel_EAST.TextDetectionModel_EAST ( 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.

◆ TextDetectionModel_EAST() [3/3]

OpenCVForUnity.DnnModule.TextDetectionModel_EAST.TextDetectionModel_EAST ( 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.

Member Function Documentation

◆ __fromPtr__()

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

◆ Dispose()

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

◆ getConfidenceThreshold()

float OpenCVForUnity.DnnModule.TextDetectionModel_EAST.getConfidenceThreshold ( )

Get the detection confidence threshold.

◆ getNMSThreshold()

float OpenCVForUnity.DnnModule.TextDetectionModel_EAST.getNMSThreshold ( )

Get the detection confidence threshold.

◆ setConfidenceThreshold()

TextDetectionModel_EAST OpenCVForUnity.DnnModule.TextDetectionModel_EAST.setConfidenceThreshold ( float confThreshold)

Set the detection confidence threshold.

◆ setNMSThreshold()

TextDetectionModel_EAST OpenCVForUnity.DnnModule.TextDetectionModel_EAST.setNMSThreshold ( float nmsThreshold)

Set the detection NMS filter threshold.


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