Generate a QR code Version 1 (Python)

Action group: Vision


Description

The action generates a QR code based on the specified data and saves it as a file (.png format).

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Path to imagePath to image file. Supported image formats: (jpeg, jpg, bmp, png, tif, tiff)Robin.ImageC:\doc\img.pngYes
Timeout, msThe time during which the captcha is expected to be recognized. Time-out is set in milliseconds. Default 120000 ms.Robin.Numeric
No
Run math. operationIf the value is «true», then it is expected that the captcha requires a mathematical action. For example: write the result 4+8=.Robin.BooleantrueNo
The minimum number of characters in the responseThe minimum number of characters that can be in the response. The acceptable range is from 1 to 20. If the number of characters is unknown, specify 0. By default, 0.Robin.Numeric
No
The maximum number of characters in the responseThe maximum number of characters that can be in the response. The acceptable range is from 1 to 20. If the number of characters is unknown, specify 0. By default, 0.Robin.Numeric
No
LanguageWhich alphabet letters are expected on the captcha. By default - «Unknown».Robin.String
No
Captcha contentThe intended contents of the captcha. The default is «Unknown».Robin.String
No
Case sensitivityIf the value is «true», then it is expected that the captcha is case sensitive.Robin.BooleantrueNo
Results
ResultSymbols that ware recognized on the captcha.Robin.String

Special conditions of use 

The robot will return an error if:

  • there is already a file with the specified name at the specified path and the overwrite field = false.

  • dictionary with another data type not strings.

The robot will return an empty result, will not return an error if:

  • the data sources are empty (including tabs, spaces, etc.).

Example of use

Task

It is necessary to create a QR code based on the text of the file taken from Word.

Solution

Use the actions "Get text", "Generate a QR code".

Implementation

Assemble the robot scheme:

  1. First, we need to open a Word file with the required text:


  2. In the parameters, specify the path to the desired Word file. 


  3. Next, we read the text using the "Get Text" action. Here we specify the context of the opened file. After we pass the result of this action to the "Generate a QR code" action. In the "Text" parameters we specify it.

Result

As a result of the robot's work we get a ready QR code.

  • Нет меток