Developer's Documentation for free mobile OCR SDK

Documentation Menu

createDataCaptureService method of the Engine class

Creates a background recognition service to run in data capture mode. Only one instance of the service per application is necessary: multiple threads for processing will be started internally.

public abstract IDataCaptureService createDataCaptureService( String profileName, IDataCaptureService.Callback callback );

Parameters

profileName

The name of a data capture profile (data scheme) to use.
Predefined data capture profiles are only available in the extended version. Pass an empty string or null to create the service without a profile, then add your profile using the IDataCaptureService.configureDataCaptureProfile method.

callback

An object implementing the IDataCaptureService.Callback interface, which will handle requests from the service.

Return values

The method returns a data capture service object implementing the IDataCaptureService interface.