Swift
Price Tags
The Vision SDK supports on-device AI scanning for Price Tags, allowing you to extract structured data such as price, currency, and product information directly from item tags—without requiring an internet connection.
⚙️ SDK Configuration
To enable on-device scanning for price tags, you must first check for feature availability using the method below. This setup is required before any image processing.
💡 You must provide either an
apiKey
or a validtoken
during configuration.
📸 Extracting Data from an Image
Once the permission has has been set, you can start scanning price tags using the following method:
📦 Delegate Method for Price Tag Values
When a price tag is successfully scanned, the following delegate method is called:
❗️Error Handling Delegate
If an error occurs during the price tag scanning process, the following delegate method will be triggered. You can implement this to handle any failures gracefully.
Use this method to log errors, display messages to the user, or perform recovery actions when scanning fails.