Offline OCR (Beta) – GBG IDscan Documentation

Offline OCR (Beta)

We are now offering offline OCR capabilities. They are combined with hot-swapping and will work seamlessly with default maven profiles from 1.14.0 version of profiles.

WARNING: This will slow down document processing; older devices suffer more drastically by increasing processing time, possibly to seconds.

Using default profile

Java

// Create profile object Profile profile = new Profile();

//Set light profile (Enables OCR and Authentication) profile.setProcessingMode(ProcessingMode.SMART_SCAN);

// This operation needs to be done once before swapProfile, and it can be heavy operation, we offer to do it on application launch or before feature of on-boarding.
MJCS.init(this);

//This needs to be called before calling Document Scanner or Customer Journey MJCS.swapProfile(profile);

Using Profile Manager

Java

// Create profile object with specific profile. Profile profile = ProfileManager.getProfile("TAG");

//Set light profile (Enables OCR and Authentication) profile.setProcessingMode( ProcessingMode .SMART_SCAN);

// This operation needs to be done once before swapProfile, and it can be heavy operation, we offer to do it on application launch or before feature of on-boarding.
MJCS.init(this);

//This needs to be called before calling Document Scanner or Customer Journey MJCS.swapProfile(profile);
Was this page helpful?