--- title: "Barcode Scanner" url: https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/barcode-scanner/ description: "This page describes the method to use the Barcode Scanner feature to scan certain data formats in your Python application with sample code snippets" last_updated: 2026-06-09T07:46:16Z service: Zia Services type: general related_links: - name: "Barcode Scanner - API" url: /en/api/code-reference/zia-services/barcode-scanner/#BarcodeScanner - name: "SDK Scopes" url: /en/sdk/python/v1/sdk-scopes --- # Barcode Scanner [Zia Barcode Scanner](https://docs.catalyst.zoho.com/en/api/code-reference/zia-services/barcode-scanner/#BarcodeScanner) enables you to scan the most commonly used linear and 2D barcode formats and decode the encoded data. Barcode Scanner can detect formats like Codabar, EAN-13, ITF, UPC-A, QR Code, and more. You can provide an input file of the format .webp/.jpeg or .png to the `open()` method. This method returns the image file object as a response. Refer to the [API documentation](https://docs.catalyst.zoho.com/en/api/code-reference/zia-services/barcode-scanner/#BarcodeScanner) for the request and response formats. You can specify the barcode format using `setFormat`. If you enter the format as `ALL`, Barcode Scanner automatically detects the format. It provides the decoded information as the response. To know more about the component instance `zia` used below, please refer to [this help section](https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/get-component-instance/). **Parameters Used**
| Parameter Name | Data Type | Definition |
|---|---|---|
| `img` | Image | A **Mandatory** parameter. Will store the ID of the model to be trained. |
| `options` | Array | A **Mandatory** parameter. Will store the format of the barcode. |