Recognize Text from Image#

Text recognition from the specified graphic file. You can choose one of several available offline and online OCR modules. Supported image formats: .png, .jpeg, .jpg, .bmp.

Selector[Selector] To interactively select the area of the image, use the Record button in the selector editing window.
File Path[Text] Path to the image file.
Text LanguageSelect the language of the text.
ModuleSelect the OCR module used for recognizing the image into text.
Segmentation Method

[Text] The recognized text can be automatically segmented into parts, separated by commas.

Segmentation method:

  • 0 - Use the specified block delimiter,
  • 1 - Automatic segmentation (only for Yandex),
  • 2 - Segment by empty spaces longer than the specified number of characters.
Block Delimiter

[Number] The hexadecimal code of the character that will be considered as the block delimiter.

For example, a space has the code 20, a tab character has the code 9. Used when selecting segmentation method 0.

Number of Characters[Number] The length of empty space in the recognized text, measured in the number of characters, which is used when selecting the text segmentation method 2.
Zoom

[Number] A value indicating how much to zoom the image before recognition.

Depending on the engine used and the resolution of the original image, zooming the image by 2 or 3 times helps improve recognition quality.

Auto Rotate PageAutomatically rotate the page during recognition.
Result[Text] The recognized text will be placed in the variable specified here.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are processed.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that the blocks will output during operation. Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.