oevislib_net  0.14.3.0
Loading...
Searching...
No Matches

Functions

static string oevislib_net.DeepLearning.OCR.Tesseract.ReadText (Image inImage, Optional< Rectangle2D > inRoi=null, Optional< UCS2D > inRoiAlignment=null, Language inLanguage=Language.English, Optional< Language > inSecondLanguage=null, ModelPerformance inModelPerformance=ModelPerformance.Best)
 Read text from an Image using a pre-trained OCR model.
static string oevislib_net.DeepLearning.OCR.Tesseract.ReadText (Region inRegion, Optional< Rectangle2D > inRoi=null, Optional< UCS2D > inRoiAlignment=null, Language inLanguage=Language.English, Optional< Language > inSecondLanguage=null, ModelPerformance inModelPerformance=ModelPerformance.Best)
 Read text from a Region using a pre-trained OCR model.
static Array< string > oevislib_net.DeepLearning.OCR.Tesseract.ReadTextByLevel (Image inImage, Optional< Rectangle2D > inRoi=null, Optional< UCS2D > inRoiAlignment=null, Language inLanguage=Language.English, Optional< Language > inSecondLanguage=null, ModelPerformance inModelPerformance=ModelPerformance.Best, TextSplitLevel inTextSplitLevel=TextSplitLevel.Word, Optional< Array< float > > outScores=null, Optional< Array< Box > > outBoundingBoxes=null)
 Read and segment text from an image using Tesseract pre-trained OCR model.

Detailed Description

Function Documentation

◆ ReadText() [1/2]

string oevislib_net.DeepLearning.OCR.Tesseract.ReadText ( Image inImage,
Optional< Rectangle2D > inRoi = null,
Optional< UCS2D > inRoiAlignment = null,
Language inLanguage = Language::English,
Optional< Language > inSecondLanguage = null,
ModelPerformance inModelPerformance = ModelPerformance::Best )
inlinestatic

Read text from an Image using a pre-trained OCR model.

Loading multiple languages will impact both speed and accuracy, as there is more work to do to decide on the applicable language, and there is more chance of hallucinating incorrect words.

Parameters
inImageThe input Image containing the text to be recognized.
inRoiRegion of interest where the text is located.
inRoiAlignmentUCS2D alignment to apply to the given ROI.
inLanguageLanguage in which the text is written.
inSecondLanguageOptional second language indicating that multiple languages need to be loaded.
inModelPerformanceWhether to use the Best or the Fast model available.
Returns
Recognized string of text.

◆ ReadText() [2/2]

string oevislib_net.DeepLearning.OCR.Tesseract.ReadText ( Region inRegion,
Optional< Rectangle2D > inRoi = null,
Optional< UCS2D > inRoiAlignment = null,
Language inLanguage = Language::English,
Optional< Language > inSecondLanguage = null,
ModelPerformance inModelPerformance = ModelPerformance::Best )
inlinestatic

Read text from a Region using a pre-trained OCR model.

Loading multiple languages will impact both speed and accuracy, as there is more work to do to decide on the applicable language, and there is more chance of hallucinating incorrect words.

Parameters
inRegionThe input Region containing the text to be recognized.
inRoiRegion of interest where the text is located.
inRoiAlignmentUCS2D alignment to apply to the given ROI.
inLanguageLanguage in which the text is written.
inSecondLanguageOptional second language indicating that multiple languages need to be loaded.
inModelPerformanceWhether to use the Best or the Fast model available.
Returns
Recognized string of text.

◆ ReadTextByLevel()

Array< string > oevislib_net.DeepLearning.OCR.Tesseract.ReadTextByLevel ( Image inImage,
Optional< Rectangle2D > inRoi = null,
Optional< UCS2D > inRoiAlignment = null,
Language inLanguage = Language::English,
Optional< Language > inSecondLanguage = null,
ModelPerformance inModelPerformance = ModelPerformance::Best,
TextSplitLevel inTextSplitLevel = TextSplitLevel::Word,
Optional< Array< float > > outScores = null,
Optional< Array< Box > > outBoundingBoxes = null )
inlinestatic

Read and segment text from an image using Tesseract pre-trained OCR model.

Parameters
inImageThe input Image containing the text to be recognized.
inRoiRegion of interest where the text is located.
inRoiAlignmentUCS2D alignment to apply to the given ROI.
inLanguageLanguage in which the text is written.
inSecondLanguageOptional second language indicating that multiple languages are to be loaded
inModelPerformanceWhether to use the Best or the Fast model available.
inTextSplitLevelImage segmentation mode.
outScoresScore associated to the recognized strings.
outBoundingBoxesRecognized strings bounding boxes.
Returns
An array containing recognized string of text.