Vision SDK
Flutter
Overview
A Flutter plugin package for seamless integration of the Flutter Vision SDK into your Flutter applications. This package provides features for scanning barcodes, QR codes, and text, along with OCR (Optical Character Recognition) support. Customize scan and capture modes to meet your specific needs.
Getting Started
Import the package and use it in your app. You can visit the following link to see details about the package and version history.
Usage
Here's an example of how to use the NativeViewWidget in your Flutter application:
User can set capture modes to Barcode, QRCode or OCR as following:
User can set scan modes to Auto or Manual as following:
In order to detect Barcode or QRCode in Manual mode, use the following function:
In order to perform OCR processes in Manual mode, use the following function:
Shipping Label API
After an image is captured, you can send it to our cloud service for further logistics processing like extracting data from a shipping label. You can do that using the following methods:
Bill of Lading API
After an image is captured, you can send it to our cloud service for further logistics processing like extracting data from a bill of lading. You can do that using the following methods:
On-Device Shipping Label
After an image is captured, you can extract shipping label information from it using our On-Device image processing AI powered capabilities, without the requirement of Internet. In order to do that, firstly you need to call the following function to load the AI related files before image processing actually begins:
Note that currently only ModelClass.shippingLabel is supported and only ModelSize.micro or Model.large are available.
You will get its progress and completion callbacks in the following function:
After model configuration has been completed, you can send the Base64 image to the following function to extract Shipping Label information from it:
iOS Documentation
To see the iOS documentation you can visit Here to see the details of each feature and their configuration parameters
Android Documentation
To see the Android documentation you can visit Here to see the details of each feature and their configuration parameters
Additional information
Users can import this package and integrate it into their Flutter projects to enable barcode and QR code scanning with customizable modes. This package provides a simple and efficient way to leverage the power of the Flutter Vision SDK in your applications.
For ios installation you need to install the pods again
For android add the below code in setting.gradle:
Add the below line in android->build.gradle->
inside repositories and all projects.
Set the below versions minSdkVersion 29
targetSdkVersion 34
in android->app->build.gradle.
Report an Issue
VisionSDK contains internal error reporting mechanism if it faces any issue. Furthermore, if you get a response from On-Device models, that you consider to be incorrect, then you can report it using the following function: