ocrAPI Class Reference

Inherits from NSObject
Declared in ocrAPI.h

Overview

AUMENTIA TECHNOLOGIES


Copyright Aumentia Technologies. All rights reserved 2015.

NOTICE: All information contained herein is, and remains the property of Aumentia Technologies and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to Aumentia Technologies and its suppliers and may be covered by Spain and Foreign Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Aumentia Technologies.

File: ocrAPI.h Description: Author: Pablo GM (info@aumentia.com) Created: 08/09/15. Verion 0.65

– init:path:lang:chars:

Init OCR instance.

- (id)init:(NSString *)key path:(NSString *)path lang:(NSString *)lang chars:(NSString *)chars

Parameters

key

License Key

path

Father path where the tessdata is stored

lang

Tesseract language used for the recognition

chars

Tesseract chars whitelist

Return Value

OCR instance

Declared In

ocrAPI.h

– processRGBFrame:result:wordsBlock:resSize:

Process an image buffer and detect motion. Camera output settings should be kCVPixelFormatType_32BGRA

- (void)processRGBFrame:(CVImageBufferRef)cameraFrame result:(imageResult)result wordsBlock:(matchedWords)wordsBlock resSize:(NSInteger)resSize

Parameters

cameraFrame

Image buffer input to be analysed.

result

Block to retrieve the analyzed frame with a bounding box around the detected words.

wordsBlock

Block to retrieve the matched words and their confidence (from 0 to 100).

resSize

Size of the frame to be analysed.
If 0 the frame will not be resized.
The bigger the frame is, the more accurate the recognition will be, but the processing will be slower.
The smaller the frame is, the processing will be faster, but we will lose accuracy.

Declared In

ocrAPI.h

– processUIImage:result:wordsBlock:resSize:

Process a UIImage

- (void)processUIImage:(UIImage *)image result:(imageResult)result wordsBlock:(matchedWords)wordsBlock resSize:(NSInteger)resSize

Parameters

image

UIImage to analyze.

result

Block to retrieve the analyzed frame with a bounding box around the detected words.

wordsBlock

Block to retrieve the matched words and their confidence (from 0 to 100).

resSize

Size of the frame to be analysed.
If 0 the frame will not be resized.
The bigger the frame is, the more accurate the recognition will be, but the processing will be slower.
The smaller the frame is, the processing will be faster, but we will lose accuracy.

Declared In

ocrAPI.h