ReadQRCode
Extracts the text from a QR code. The output of this script includes the output of the script "extractIndicators" run on the text extracted from the QR code.
python · Common Scripts
Details
| ID | ReadQRCode |
|---|---|
| Language | python |
| From Version | 6.10.0 |
| Docker Image | demisto/qrcode:1.0.0.11458275 |
README
Extract text from QR codes.
The output of this script includes the output of the script “extractIndicators” run on the text extracted from the QR code.
This script uses the following python libraries to decode:
pyzbaropencv-contrib-python
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.10.0 |
Inputs
| Argument Name | Description |
|---|---|
| entry_id | The entry ID of the QR code image. |
Outputs
| Path | Description | Type |
|---|---|---|
| QRCodeReader.Text | The raw text extracted from the QR code image. | String |
| QRCodeReader.Domain | The domains extracted from the QR code image if they are present. | String |
| QRCodeReader.URL | The URLs extracted from the QR code image if they are present. | String |
| QRCodeReader.IP | The IPs extracted from the QR code image if they are present. | String |
Script Examples
Example command
!ReadQRCode entry_id=1234@1234abcd-12ab-12ab-12ab-1234abcd
Context Example
{
"QRCodeReader": {
"Domain": [
"xsoar.pan.dev"
],
"Text": "https://xsoar.pan.dev/",
"URL": [
"https://xsoar.pan.dev/"
]
}
}
Human Readable Output
QR Code Read
Text https://xsoar.pan.dev/
args: - description: The entry ID of the QR code image. name: entry_id required: true default: true comment: Extracts the text from a QR code. The output of this script includes the output of the script "extractIndicators" run on the text extracted from the QR code. commonfields: id: ReadQRCode version: -1 name: ReadQRCode outputs: - contextPath: QRCodeReader.Text description: The raw text extracted from the QR code image. type: String - contextPath: QRCodeReader.Domain description: The domains extracted from the QR code image if they are present. type: String - contextPath: QRCodeReader.URL description: The URLs extracted from the QR code image if they are present. type: String - contextPath: QRCodeReader.IP description: The IPs extracted from the QR code image if they are present. type: String script: '-' tags: [] timeout: '0' type: python subtype: python3 dockerimage: demisto/qrcode:1.0.0.11458275 fromversion: 6.10.0 tests: - No tests (auto formatted)