Classes
The following classes are available globally.
-
VLDGlareArea contains the coordinates that make up a region of glare detected in an image by the OCR process.
See moreDeclaration
Objective-C
@interface VLDGlareArea : NSObject
Swift
class VLDGlareArea : NSObject
-
VLDOCRController is the primary interface for getting records from a peripheral via OCR. The live results and final record are given to the VLDOCRController’s delegate object (VLDOCRControllerDelegate).
VLDOCRController is initialized with a VLDOCRPeripheral object. A VLDOCRPeripheral object can be obtained by calling [VLDOCRPeripheral supportedPeripherals].
When an instance of VLDOCRController is initialized it will immediately turn on the camera for the current device. The camera preview can be accessed with the
See morepreviewLayer
property. VLDOCRController needs to be configured with theconfigureForPreviewLayerSize:
method. You need to call this method when VLDOCRController is initialized and pass in the size of the preview layer (generally the full size of the screen). This will allow the library to set theoverlayFrame
property to the correct size.overlayFrame
should then be used to set the frame of theoverlayImage
from the peripheral. This is required so that the user is able to position the camera so that the peripheral is in the proper place to be processed for OCR. Note: you will need to callconfigureForPreviewLayerSize:
if the size of the preview layer changes, it is recommended to call this method from theviewDidLayoutSubviews
callback in your view controller.Declaration
Objective-C
@interface VLDOCRController : NSObject
Swift
class VLDOCRController : NSObject
-
The VLDOCRPeripheral class represents OCR peripheral models that can be scanned using VLDOCRPeripheralController.
See moreDeclaration
Objective-C
@interface VLDOCRPeripheral
Swift
class VLDOCRPeripheral
-
Live results from performing OCR.
See moreDeclaration
Objective-C
@interface VLDOCRResult : NSObject
Swift
class VLDOCRResult : NSObject
-
The VLDOCRViewController is the VLDOCRController fully implemented in a view controller with the peripheral overlay and display of partial results.
See moreDeclaration
Objective-C
@interface VLDOCRViewController : UIViewController
Swift
class VLDOCRViewController : UIViewController