Method Run
- Namespace
- OpenCvSharp.Text
- Assembly
- OpenCvSharp.dll
Run(Mat, out string, out Rect[], out string?[], out float[], ComponentLevels)
Recognizes text using a segmentation-based word-spotting classifier CNN. The output text is always one that exists in the dictionary.
public override void Run(Mat image, out string outputText, out Rect[] componentRects, out string?[] componentTexts, out float[] componentConfidences, ComponentLevels componentLevel = ComponentLevels.Word)
Parameters
imageMatInput image CV_8UC1 or CV_8UC3.
outputTextstringOutput text of the word spotting, always one that exists in the dictionary.
componentRectsRect[]Not applicable for word spotting.
componentTextsstring[]Not applicable for word spotting.
componentConfidencesfloat[]Not applicable for word spotting.
componentLevelComponentLevelsMust be ComponentLevels.Word.
Run(Mat, Mat, out string, out Rect[], out string?[], out float[], ComponentLevels)
Recognizes text using a segmentation-based word-spotting classifier CNN. The mask parameter is ignored and only available for API compatibility.
public override void Run(Mat image, Mat mask, out string outputText, out Rect[] componentRects, out string?[] componentTexts, out float[] componentConfidences, ComponentLevels componentLevel = ComponentLevels.Word)
Parameters
imageMatInput image CV_8UC1 or CV_8UC3.
maskMatIgnored; only available for compatibility reasons.
outputTextstringOutput text of the word spotting, always one that exists in the dictionary.
componentRectsRect[]Not applicable for word spotting.
componentTextsstring[]Not applicable for word spotting.
componentConfidencesfloat[]Not applicable for word spotting.
componentLevelComponentLevelsMust be ComponentLevels.Word.