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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Path to image | Path to image file. Supported image formats: (jpeg, jpg, bmp, png, tif, tiff) | Robin.Image | C:\doc\img.png | Yes |
Timeout, ms | The time during which the captcha is expected to be recognized. Time-out is set in milliseconds. Default 120000 ms. | Robin.Numeric | No | |
Run math. operation | If the value is «true», then it is expected that the captcha requires a mathematical action. For example: write the result 4+8=. | Robin.Boolean | true | No |
The minimum number of characters in the response | The 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 response | The 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 | |
Language | Which alphabet letters are expected on the captcha. By default - «Unknown». | Robin.String | No | |
Captcha content | The intended contents of the captcha. The default is «Unknown». | Robin.String | No | |
Case sensitivity | If the value is «true», then it is expected that the captcha is case sensitive. | Robin.Boolean | true | No |
Results | ||||
Result | Symbols 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:
- First, we need to open a Word file with the required text:
- In the parameters, specify the path to the desired Word file.
- 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.
Обзор
Инструменты контента