LPV OCR(Optical Character Recognition) Library, provides classes for character segmentation, recognition and verification. More...
Data Structures | |
interface | ILFontDatabase |
This interface represents a font database for character recognition. More... | |
interface | ILOCR |
This interface provide functionalities of character segmentation, recognition and verification. More... | |
interface | ILOCRChar |
This interface represents a single character and is used to access its properties. More... | |
interface | ILOCRLine |
This interface represents a single line of text and is used to access its properties. More... | |
interface | ILOCRResult |
This interface represents a OCR result instance and is used to access its properties. More... | |
class | LFontDatabase |
class | LOCR |
class | LOCRChar |
class | LOCRLine |
class | LOCRResult |
Enumerations | |
enum | LPVOCRDrawFlags { LPVOCRDrawString = 1 , LPVOCRDrawRegion = 2 , LPVOCRDrawCenter = 4 , LPVOCRDrawIndex = 8 , LPVOCRDrawByLine = 16 , LPVOCRDrawDefault = LPVOCRDrawString | LPVOCRDrawRegion , LPVOCRDrawAll = 0x0f } |
This enumeration represents the flags to control the OCR results' drawing behavior. More... | |
enum | LPVOCRFeatures { LPVOCRFeaturePixel = 0x0001 , LPVOCRFeatureFGFraction = 0x0002 , LPVOCRFeatureCircularity = 0x0004 , LPVOCRFeatureConvexity = 0x0008 , LPVOCRFeatureConvexityDefects = 0x0010 , LPVOCRFeatureOrientation = 0x0020 , LPVOCRFeatureInertia = 0x0040 , LPVOCRFeatureContourCount = 0x0080 , LPVOCRFeatureHoleCount = 0x0100 , LPVOCRFeatureAspectRatio = 0x0200 , LPVOCRFeatureWidth = 0x0400 , LPVOCRFeatureHeight = 0x0800 , LPVOCRFeatureZoomFactor = 0x1000 , LPVOCRFeatureDefault = LPVOCRFeaturePixel | LPVOCRFeatureAspectRatio , LPVOCRFeatureAll = 0xffff } |
This enumeration represents the features available for recognition. More... | |
enum | LPVOCRPixelProjection { LPVOCRPixelProjNone = 0 , LPVOCRPixelProjHorizontal = 1 , LPVOCRPixelProjVertical = 2 , LPVOCRPixelProjHorizontalAndVertical = 3 } |
This enumeration represents the grid projection when calculating the pixel feature. More... | |
enum | LPVOCRPixelValue { LPVOCRPixelGrayscale = 0 , LPVOCRPixelGrayscaleNormalized = 1 , LPVOCRPixelBinary = 2 , LPVOCRPixelFGFraction = 3 } |
This enumeration represents how the pixel values are calculated in pixel feature. More... | |
enum | LPVOCRSegmentFlags { LPVOCRSegmentNone = 0x00 , LPVOCRSegmentLigature = 0x01 , LPVOCRSegmentStickyLines = 0x02 , LPVOCRSegmentStrongStickyLines = 0x04 , LPVOCRSegmentTrimUnknownFragments = 0x08 , LPVOCRSegmentDefault = LPVOCRSegmentLigature | LPVOCRSegmentStickyLines | LPVOCRSegmentTrimUnknownFragments , LPVOCRSegmentAll = 0xff } |
This enumeration represents the flags to control the line and character segmentation behavior. More... | |
enum | LPVOCVFlags { LPVOCVShape = 0x01 , LPVOCVGrayscale = 0x02 , LPVOCVMissingPart = 0x04 , LPVOCVGrayScaleMissingPart = 0x08 , LPVOCVAll = 0xff } |
This enumeration represents the verification flags for OCV. More... | |
LPV OCR(Optical Character Recognition) Library, provides classes for character segmentation, recognition and verification.
This library provides classes for OCR/OCV tasks. Machine learning technology is involved for prediction. To include the definitions of the library's classes, use the following directive:
C++ Snippets: OCRHandWritten.cpp
C# Snippets: OCRHandWritten.cs
enum LPVOCRDrawFlags |
This enumeration represents the flags to control the OCR results' drawing behavior.
enum LPVOCRFeatures |
This enumeration represents the features available for recognition.
Enumerator | |
---|---|
LPVOCRFeaturePixel | Pixel feature, which divides the sample image into grids then uses the averaging grayscale or binary value in individual block as feature |
LPVOCRFeatureFGFraction | Foreground fraction feature represents percentage of the foreground pixels(inside the character) in the entire image |
LPVOCRFeatureCircularity | Circularity feature, which calculates the circularity property of the character sample's contour, similar as LPVBlobCircularity |
LPVOCRFeatureConvexity | Convexity feature, which calculates the convexity property of the character sample's contour, similar as LPVBlobCircularity |
LPVOCRFeatureConvexityDefects | Convexity defects features represents the differences between the character sample's contour and its bounding convex hull |
LPVOCRFeatureOrientation | Orientation feature, which is the sine value of the major axis of the bounding convex hull of the character sample's contour. Note: this feature is not rotation-invariant. |
LPVOCRFeatureInertia | Inertia feature, which calculates the inertia property of the character sample's contour, similar as LPVBlobInertia |
LPVOCRFeatureContourCount | Contour-count feature, which uses the count of the character sample's contours as feature, for example, character i has 2 contours. |
LPVOCRFeatureHoleCount | Hole-count feature, which uses the count of the character sample's holes as feature, for example, character 8 has 2 holes. |
LPVOCRFeatureAspectRatio | Aspect ratio feature, which calculates the aspect ratio of the character's size, similar as LPVBlobAspectRatio |
LPVOCRFeatureWidth | Width feature, which use the width of the character as feature. Note: this feature is not scale-invariant. |
LPVOCRFeatureHeight | Height feature, which use the width of the character as feature. Note: this feature is not scale-invariant. |
LPVOCRFeatureZoomFactor | Zoom factor feature, which represents the scaling factor of the sample image to the unified size. Note: this feature is not scale-invariant. |
LPVOCRFeatureDefault | Default recognition features, uses pixel and aspect ratio features |
LPVOCRFeatureAll | Use all features |
This enumeration represents the grid projection when calculating the pixel feature.
enum LPVOCRPixelValue |
This enumeration represents how the pixel values are calculated in pixel feature.
enum LPVOCRSegmentFlags |
This enumeration represents the flags to control the line and character segmentation behavior.
enum LPVOCVFlags |
This enumeration represents the verification flags for OCV.