Class TextDetectionModel
Base class for text detection networks.
public abstract class TextDetectionModel : Model, IDisposable
- Inheritance
-
TextDetectionModel
- Implements
- Derived
- Inherited Members
Constructors
TextDetectionModel()
protected TextDetectionModel()
Fields
_textDetectionModel
The pointer to the TextDetectionModel object
protected nint _textDetectionModel
Field Value
Methods
Detect(IInputArray, VectorOfVectorOfPoint, VectorOfFloat)
Given the input frame, prepare network input, run network inference, post-process network output and return result detections.
public void Detect(IInputArray frame, VectorOfVectorOfPoint detections, VectorOfFloat confidences)
Parameters
frame
IInputArrayThe input image
detections
VectorOfVectorOfPointArray with detections' quadrangles (4 points per result) in this order: bottom-left, top-left, top-right, bottom-right
confidences
VectorOfFloatArray with detection confidences
DetectTextRectangles(IInputArray, VectorOfRotatedRect, VectorOfFloat)
Given the input frame, prepare network input, run network inference, post-process network output and return result detections.
public void DetectTextRectangles(IInputArray frame, VectorOfRotatedRect detections, VectorOfFloat confidences)
Parameters
frame
IInputArrayThe input image
detections
VectorOfRotatedRectArray with detections' RotationRect results
confidences
VectorOfFloatArray with detection confidences
DisposeObject()
Release the memory associated with this text detection model.
protected override void DisposeObject()