AnylineOCRModuleDelegate Protocol Reference

Conforms to NSObject
Declared in AnylineOCRModuleView.h

Overview

The delegate for the AnylineOCRModuleView.

– anylineOCRModuleView:didFindResult: required method

Called when a result is found

- (void)anylineOCRModuleView:(AnylineOCRModuleView *_Nonnull)anylineOCRModuleView didFindResult:(ALOCRResult *_Nonnull)result

Parameters

anylineOCRModuleView

The AnylineOCRModuleView

result

The result object

Declared In

AnylineOCRModuleView.h

– anylineOCRModuleView:reportsVariable:value:

Called with interesting values, that arise during processing.

Some possibly reported values:

  • $brightness - the brightness of the center region of the cutout as a float value
  • $confidence - the confidence, an Integer value between 0 and 100
  • $thresholdedImage - the current image transformed into black and white (the base image used for OCR)

(Deprecated: since 3.10)

- (void)anylineOCRModuleView:(AnylineOCRModuleView *_Nonnull)anylineOCRModuleView reportsVariable:(NSString *_Nonnull)variableName value:(id _Nonnull)value

Parameters

anylineOCRModuleView

The AnylineOCRModuleView

variableName

The variable name of the reported value

value

The reported value

Declared In

AnylineOCRModuleView.h

– anylineOCRModuleView:reportsRunFailure:

Is called when the processing is aborted for the current image before reaching return. (If not text is found or confidence is to low, etc.) (Deprecated: since 3.10)

- (void)anylineOCRModuleView:(AnylineOCRModuleView *_Nonnull)anylineOCRModuleView reportsRunFailure:(ALOCRError)error

Parameters

anylineOCRModuleView

The AnylineOCRModuleView

error

The error enum

Declared In

AnylineOCRModuleView.h

– anylineOCRModuleView:textOutlineDetected:

Called when the outline of a possible text is detected. (currently always a rect with 4 points, but this may change in the future) (Deprecated: since 3.10)

- (BOOL)anylineOCRModuleView:(AnylineOCRModuleView *_Nonnull)anylineOCRModuleView textOutlineDetected:(ALSquare *_Nonnull)outline

Parameters

anylineOCRModuleView

The AnylineOCRModuleView

outline

The ALSquare with the 4 points.

Return Value

YES if you handle drawing by yourself, NO if Anyline should draw the outline.

Discussion

Warning: When not implemented Anyline will handle the drawing. Deactivate it by implementing this delegate and return YES

Declared In

AnylineOCRModuleView.h