OpenCV for Unity 2.6.3
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.TextModule.TextDetectorCNN Class Reference

TextDetectorCNN class provides the functionallity of text bounding box detection. This class is representing to find bounding boxes of text words given an input image. This class uses OpenCV dnn module to load pre-trained model described in [LiaoSBWL17]. The original repository with the modified SSD Caffe version: https://github.com/MhLiao/TextBoxes. Model can be downloaded from DropBox. Modified .prototxt file with the model description can be found in opencv_contrib/modules/text/samples/textbox.prototxt. More...

Inheritance diagram for OpenCVForUnity.TextModule.TextDetectorCNN:
OpenCVForUnity.TextModule.TextDetector OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

override void detect (Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)
 
- Public Member Functions inherited from OpenCVForUnity.TextModule.TextDetector
IntPtr getNativeObjAddr ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new TextDetectorCNN __fromPtr__ (IntPtr addr)
 
static TextDetectorCNN create (string modelArchFilename, string modelWeightsFilename)
 
- Static Public Member Functions inherited from OpenCVForUnity.TextModule.TextDetector
static TextDetector __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.TextModule.TextDetector
- 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

- Package Functions inherited from OpenCVForUnity.TextModule.TextDetector
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

TextDetectorCNN class provides the functionallity of text bounding box detection. This class is representing to find bounding boxes of text words given an input image. This class uses OpenCV dnn module to load pre-trained model described in [LiaoSBWL17]. The original repository with the modified SSD Caffe version: https://github.com/MhLiao/TextBoxes. Model can be downloaded from DropBox. Modified .prototxt file with the model description can be found in opencv_contrib/modules/text/samples/textbox.prototxt.

Member Function Documentation

◆ __fromPtr__()

static new TextDetectorCNN OpenCVForUnity.TextModule.TextDetectorCNN.__fromPtr__ ( IntPtr addr)
static

◆ create()

static TextDetectorCNN OpenCVForUnity.TextModule.TextDetectorCNN.create ( string modelArchFilename,
string modelWeightsFilename )
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ detect()

override void OpenCVForUnity.TextModule.TextDetectorCNN.detect ( Mat inputImage,
MatOfRect Bbox,
MatOfFloat confidence )
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
inputImagean image expected to be a CV_U8C3 of any size
Bboxa vector of Rect that will store the detected word bounding box
confidencea vector of float that will be updated with the confidence the classifier has for the selected bounding box

Reimplemented from OpenCVForUnity.TextModule.TextDetector.

◆ Dispose()

override void OpenCVForUnity.TextModule.TextDetectorCNN.Dispose ( bool disposing)
protectedvirtual

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