Skip to main content

Snap OCR

If enabled, the scanner extracts text from a captured image with the use of Text Recognition from Google's ML Kit.

To configure the Snap OCR feature via Scan2Deploy Studio, refer to Snap OCR.

Snap OCR

Enable

Allows OCR text from scanner or camera (based on the selected input) to be decoded and displayed as a barcode result.

When you press the trigger, a preview of the camera or scanner frame is displayed on the screen. The OCR text is decoded while the trigger is held, and a bounding box will show around the successfully decoded text.

To confirm the selection, release the trigger. The decoded OCR text is then processed according to the settings specified below.

First Selection Mode

Specifies how the OCR text is selected to be sent as a result. The available options are:

OptionDescription
Always SelectAsks you to select the text from a dialog showing all the decoded OCR text inside the frame.
ROI ProposeSelects all the text found in defined ROIs and you can decide to deselect parts of the text.
Picklist ProposeSearches for the closest bounding box result near the center of the image, selects it and then asks for confirmation.
ROI SendSends all the text found in defined ROIs as barcode result.
Picklist SendAutomatically sends the result for the closest bounding box near the center of the image.

Scanning Policy

Specifies the scanning policy. The available options are:

SOptionDescription
OCR + BarcodeDecodes both OCR texts and barcodes.
OCR OnlyDecodes only OCR texts.
OCR TriggerMaps the OCR decoding to a newly added keycode (called OCR_DECODE). The standard barcode decoding keycode will not trigger OCR decoding.

ROI Settings

Configures the ROIs used in the ROI Propose and ROI Send first selection modes.

ROI Settings

Result Settings

Configures the OCR results.

Results Combination

Specifies how to combine the different OCR text results that are selected. The available options are:

OptionDescription
ConcatenatedConcatenates the OCR texts into a single result, using the separator configured in Result Separator.
DividedSends each selected OCR text as a separate result.

Result Separator

Configures the separator to use when the results combination is set to Concatenated.

Regex Filter

Defines a regular expression (regex) pattern to filters out any decoded OCR text.

ROI Prefix Visible

If enabled, it adds a prefix to the OCR results to indicate the ROI they belong to.

The prefix format is: <ROI NUMBER>:<OCR TEXT>, where <ROI NUMBER> indicates the index of the ROI inside the ROI Settings (starting from 1) and <OCR TEXT> is the original result.

UI Customization

Configures the User Interface of the Snap OCR feature.

Background Color

Sets the background color for the result dialog shown when the first selection mode is Always Select, ROI Propose or Picklist Propose.

Text Color

Sets the text color for the result dialog shown when the first selection mode is Always Select, ROI Propose or Picklist Propose.

Reference ROI Visible

Toggles visibility for the reference ROI in the preview.