S60 3rd Edition API Reference: MOCREngineRecognizeBlock Class Reference
MOCREngineRecognizeBlock Class Reference API published in: S60 3rd Ed FP 1
Link against: ocrsrv.lib
Capability Information Required Capabilities None
#include <ocrsrv.h >
Inherits MOCREngineInterface .
Detailed Description
OCR (Optical Character Recognition) Engine Interfaces without Layout Analysis.
This set of interfaces offers the OCR engine which does not support Layout Analysis on full images. User shall implement their own layout solution
RecognizeBlockL recognizes text information in a single block area regardless of content
RecognizeSpecialRegionL recognizes text information in a single block area and its content sensitive. User can select three different types of contents: e-mail address, phone numbers or web addresses
See also: TRegionInfo
Note that this class shall be used together with TEngineType set to EEngineRecognizeBlock
Member Function Documentation
virtual void MOCREngineRecognizeBlock::RecognizeBlockL ( const TInt aBitmapHandle , const TOCRLayoutBlockInfo aLayoutInfo ) [pure virtual]
This method recognizes text in a single block.
Parameters:
aBitmapHandle Handle of the image(get from CFbsBitmap::Handle()) aLayoutInfo Block information
Returns: None
Leave: KErrNotSupported Image shall be in BMP format (24bit colored or 8 bit grayscale) and the size shall not exceed 1600x1200 in pixel
Leave: KErrNotReady Internal object is not constructed
Leave: KErrAbort Child thread does not exist or operation is aborted
Leave: KErrCouldNotConnect No connection to the font and bitmap server could be made
Leave: KErrUnknown No bitmap could be found with the specified handle number
Leave: KErrArgument aRegionInfo is available
Leave: KErrServerBusy OCR service is busy
virtual void MOCREngineRecognizeBlock::RecognizeSpecialRegionL ( const TInt aBitmapHandle , const TRegionInfo aRegionInfo ) [pure virtual]
This method recognizes text with special content in a single block.
Note that SetActiveLanguageL has to be called first and language must be set to TLanguage::ELangEnglish
Parameters:
aBitmapHandle Handle of the image(get from CFbsBitmap::Handle()) aRegionInfo Block information
Returns: None
Leave: KErrNotSupported Image shall be in BMP format (24bit colored or 8 bit grayscale) and the size shall not exceed 1600x1200 in pixel
Leave: KErrNotReady Internal object is not constructed
Leave: KErrAbort Child thread does not exist or operation is aborted
Leave: KErrCouldNotConnect No connection to the font and bitmap server could be made
Leave: KErrUnknown No bitmap could be found with the specified handle number
Leave: KErrArgument aRegionInfo is available
Leave: KErrServerBusy OCR service is busy
The documentation for this class was generated from the following file: