MOCREngineObserver Class Reference

API published in: S60 3rd Ed FP 1

Link against: ocrsrv.lib

Capability Information

Required Capabilities

None


#include <
ocrsrv.h>

Detailed Description

OCR (Optical Character Recognition) Engine Observer.

This set of interfaces defines the observers of the OCR engine. This is the unique set for all types of engines. User needs to implement a concrete class which is derived from this class.


Public Member Functions

virtual void RecognizeBlockComplete (TInt aError, const TOCRTextRgnInfo *aBlocks, const TInt aBlockCount)=0
 This interface will be called after the Block Recognition is completed.
virtual void RecognizeSpecialRegionComplete (TInt aError, const TOCRTextRgnInfo *aBlocks, const TInt aBlockCount)=0
 This interface will be called after the Special Region Recognition is completed.
virtual void RecognizeComplete (TInt aError, const TOCRTextRgnInfo *aBlocks, const TInt aBlockCount)=0
 This interface will be called after the Full Image Recognition is completed.
virtual void LayoutComplete (TInt aError, const TOCRBlockInfo *aBlocks, const TInt aBlockCount)=0
 This interface will be called after the Full Image Layout Analysis is completed.
virtual void RecognizeProcess (const TUint aPercent)=0
 This interface will be called during the procession and indicates the progress.

Member Function Documentation

virtual void MOCREngineObserver::LayoutComplete TInt  aError,
const TOCRBlockInfo aBlocks,
const TInt  aBlockCount
[pure virtual]
 

This interface will be called after the Full Image Layout Analysis is completed.

This calling only valid when using the EEngineLayoutRecognize type of engine

See also:
OCREngineFactory::TEngineType

MOCREngineLayoutRecognize

Parameters:
aError Error code to indicate the completion status
aBlocks Pointer to the text information of the recognized image block, Please note that the memory ownership belongs to the OCR engine and will not be passed to your procedure after this calling
aBlockCount Number of block identified
Returns:
None
virtual void MOCREngineObserver::RecognizeBlockComplete TInt  aError,
const TOCRTextRgnInfo aBlocks,
const TInt  aBlockCount
[pure virtual]
 

This interface will be called after the Block Recognition is completed.

This calling only valid when using the EEngineRecognizeBlock type of engine

See also:
OCREngineFactory::TEngineType

MOCREngineRecognizeBlock

Parameters:
aError Error code to indicate the completion status
aBlocks Pointer to the text information of the recognized image block, Please note that the memory ownership belongs to the OCR engine and will not be passed to your procedure after this calling
aBlockCount Number of block identified
Returns:
None
virtual void MOCREngineObserver::RecognizeComplete TInt  aError,
const TOCRTextRgnInfo aBlocks,
const TInt  aBlockCount
[pure virtual]
 

This interface will be called after the Full Image Recognition is completed.

This calling only valid when using the EEngineLayoutRecognize type of engine

See also:
OCREngineFactory::TEngineType

MOCREngineLayoutRecognize

Parameters:
aError Error code to indicate the completion status
aBlocks Pointer to the text information of the recognized image block, Please note that the memory ownership belongs to the OCR engine and will not be passed to your procedure after this calling
aBlockCount Number of block identified
Returns:
None
virtual void MOCREngineObserver::RecognizeProcess const TUint  aPercent  )  [pure virtual]
 

This interface will be called during the procession and indicates the progress.

Parameters:
aPercent A percentage of the current progression
Returns:
None
virtual void MOCREngineObserver::RecognizeSpecialRegionComplete TInt  aError,
const TOCRTextRgnInfo aBlocks,
const TInt  aBlockCount
[pure virtual]
 

This interface will be called after the Special Region Recognition is completed.

This calling only valid when using the EEngineRecognizeBlock type of engine

See also:
OCREngineFactory::TEngineType

MOCREngineRecognizeBlock

Parameters:
aError Error code to indicate the completion status
aBlocks Pointer to the text information of the recognized image block, Please note that the memory ownership belongs to the OCR engine and will not be passed to your procedure after this calling
aBlockCount Number of block identified
Returns:
None

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top