dynamsoft_capture_vision_flutter 3.0.5200
dynamsoft_capture_vision_flutter: ^3.0.5200 copied to clipboard
A Flutter plugin for Dynamsoft Capture Vision providing barcode scanning, document processing, and more.
Dynamsoft Capture Vision Flutter SDK #
Dynamsoft Capture Vision (DCV) is an aggregating SDK of a series of specific functional products, which cover image capturing, content understanding, result parsing, and interactive workflow.
- With the implementation of the Image Source Adapter (ISA) interface, a seamless integration with DCV is possible, allowing easy access to various image sources.
- Dynamsoft Barcode Reader (DBR), Dynamsoft Document Normalizer (DDN), and Dynamsoft Label Recognizer (DLR) play crucial roles in reading barcodes, structures, and texts from images.
- Dynamsoft Code Parser (DCP) is utilized to extract meaningful fields from text/bytes results, ensuring optimal data parsing capabilities.
- To seamlessly access intermediate and final results within the DCV SDK, the Capture Result Receiver (CRR) and Intermediate Result Receiver (IRR) interfaces are provided. After users implement these interfaces and register with DCV, they can obtain the results efficiently and conveniently.
- To view and edit the output results, Dynamsoft Camera Enhancer (DCE) provide a suite of robust viewing and editing functions.
DCV powers your software development through the following aspects:
- Simplicity with Packable Scenarios
- Scalability with Pluggable Components
- Flexibility With Customizable Workflows
- High Performance With Shared Computations
- Bidirectional Interactivity with Intermediate Results
DCV enables you to develop highly customizable applications for barcode reading, label recognition, document board detection, and result parsing. These applications offer enterprise-grade performance and can be tailored to meet your specific business needs.
Requirements #
Dev tools #
- Latest Flutter SDK
- For Android apps: Android SDK (API Level 21+), platforms and developer tools
- For iOS apps: iOS 13+, macOS with latest Xcode and command line tools
Mobile platforms #
- Android 5.0 (API Level 21) and higher
- iOS 13 and higher
How to use the SDK #
Installation #
Install the Dynamsoft Capture Vision Flutter SDK module by running the following command in your terminal or through your IDE:
$ flutter pub add dynamsoft_capture_vision_flutter
Add this import to the top of your file:
import 'package:dynamsoft_capture_vision_flutter/dynamsoft_capture_vision_flutter.dart';
Camera permissions
Our SDK needs camera access to scan from a live camera stream.
Android
Request camera permission with:
PermissionUtil.requestCameraPermission();
iOS
Add this camera permission description to ios/{projectName}/Info.plist inside the
<key>NSCameraUsageDescription</key>
<string></string>
Setup license
Set the SDK license before using any features, ideally when your app launches.
Set the SDK license with:
final result = await LicenseManager.initLicense("<YOUR_LICENSE_KEY>");
Note
- You can request a 30-day trial license via the Request a Trial License link.
Capture vision setup #
Configure camera and start capturing.
// Create object.
final CameraEnhancer _camera = CameraEnhancer.instance;
final CaptureVisionRouter _cvr = CaptureVisionRouter.instance;
// Bind the `CameraEnhancer` object to the `CaptureVisionRouter` object
_cvr.setInput(_camera);
// Add `CapturedResultReceiver`
late final CapturedResultReceiver _receiver = CapturedResultReceiver()
..onDecodedBarcodesReceived = (DecodedBarcodesResult result) async {
// handle result here
};
_cvr.addResultReceiver(_receiver);
// Open camera and startCapturing
_camera.open();
final String _templateName = EnumPresetTemplate.readBarcodes;
try {
await _cvr.startCapturing(_templateName);
} catch (e) {
// handle error when exception throw
}
// Display the camera view
Widget build(BuildContext context) {
return Scaffold(
body: Center(child: CameraView(cameraEnhancer: _camera)),
);
}
User Guide #
- Scanning Barcodes with Ready-to-use Component Integration Guide
- Scanning Barcodes with Foundational APIs Integration Guide
- Scanning Drivers' License Integration Guide
- MRZ Scanner Integration Guide
- Document Scanner Integration Guide
- VIN Scanner Integration Guide
Samples #
You can view all the Dynamsoft Flutter samples via the following links:
License #
- You can request a 30-day trial license via the Request a Trial License link.