Méthode | Description | |
---|---|---|
Charactors ( ) : Tesseract.Charactor[] |
Returns an array of Tesseract Charactors after running the Scan Method
|
|
Cost ( Emgu.CV.OCR.Tesseract chars ) : long |
Calculates the cost by summing the unique cost of each word
|
|
IsEmpty ( Shred shreds ) : void |
Determines runs OCR and determines if a shred is empty or not
|
|
OCR ( Accuracy accuracy = Accuracy.High, string language = "eng", bool enableTimer = false ) : System |
Initialize a new OCR Object. This object is a wrapper for the Emgu Tesseract Wrapper to give a level of abstraction necessary for scanning shreds
|
|
OverallCost ( ) : long |
Returns the of cos
|
|
ParallelDetectOrientation ( |
Parallelized OCR Orientation Confidence Detector, this method will run ocr on an image and its corresponding reversed images and return the confidence and both the ocrdata objects
|
|
ParallelRecognize ( IEnumerable |
Parallelized Recognize Function takes in a list or array of images, A specified length and for each image returns an OCRData object
|
|
Preprocess ( byte>.Image |
OCR Preprocessing, currently this involves binary threholding a gray scaled image using the Otsu Method
|
|
Recognize ( |
Execute OCR on a given image, this static member will process the image, Safely open, execute and dispose a Tesseract Object and store the result in a new OcrData object.
|
|
Scan ( byte>.Image |
Given a Color image, it is coverted to grayscale OCR-ed and returned
|
|
Scan ( byte>.Image |
Invokes Tesseract OCR Recognize on given image Stores the resulting data in the Text,Confidence and ScanTime data members
|
|
ShredOcr ( Shred shreds, string lang = "eng" ) : void |
Given an array of shreds, we OCR them all and save results to the shred object
|
|
StripNewLine ( string text ) : string | ||
Text ( ) : string |
Getter for the text generated after running the Scan Method
|
Méthode | Description | |
---|---|---|
DisposeObject ( ) : void |
Disposes all the necessary objects
|
Méthode | Description | |
---|---|---|
Elapsed ( ) : long |
Retrieve the time elapsed from the diagnostics Timer
|
|
Start ( ) : bool |
Explicitly starts the diagnostics timer
|
|
Stop ( ) : void |
Stops the diagnostics timer
|
public Charactors ( ) : Tesseract.Charactor[] | ||
Résultat | Tesseract.Charactor[] |
public static Cost ( Emgu.CV.OCR.Tesseract chars ) : long | ||
chars | Emgu.CV.OCR.Tesseract | Tesseract OCR Charactor results |
Résultat | long |
public static IsEmpty ( Shred shreds ) : void | ||
shreds | Shred | A list of Shred Objects |
Résultat | void |
public OCR ( Accuracy accuracy = Accuracy.High, string language = "eng", bool enableTimer = false ) : System | ||
accuracy | Accuracy | Desired Accuracy setting |
language | string | Language of text on image used for OCR model |
enableTimer | bool | Set enable Timer to true to measure scan time for diagnostic purposes |
Résultat | System |
public static ParallelDetectOrientation ( |
||
regs | Images with default regular orientation | |
revs | Images with reversed orientation to default | |
mode | Accuracy | OCR accuracy mode |
lang | string | OCR languages |
enableTimer | bool | Enable timer for diagnostic purposes |
Résultat | Tuple |
public static ParallelRecognize ( IEnumerable |
||
images | IEnumerable |
Array or List of Bitmaps |
length | int | Number of items to be Recognized from the array |
mode | Accuracy | Accuracy Mode |
lang | string | Desired OCR Language |
enableTimer | bool | Enables OCR Scan Timer if true |
Résultat | OcrData[] |
public Preprocess ( byte>.Image |
||
image | byte>.Image | Image to be preprocessed |
Résultat | byte>.Image |
public static Recognize ( |
||
original | Image to be OCR-ed | |
mode | Accuracy | Accuracy setting |
lang | string | Language of text for OCR Language Model |
enableTimer | bool | Measure the Scantime for Diagnostic purposes |
Résultat | OcrData |
public Scan ( byte>.Image |
||
image | byte>.Image | Source Image to be OCR-ed |
Résultat | string |
public Scan ( byte>.Image |
||
image | byte>.Image | Source Image to be OCR-ed |
Résultat | string |
public static ShredOcr ( Shred shreds, string lang = "eng" ) : void | ||
shreds | Shred | Array of initialized shred objects |
lang | string | Desired OCR langauge |
Résultat | void |
public static StripNewLine ( string text ) : string | ||
text | string | |
Résultat | string |