dynamsoft_capture_vision_flutter 3.0.5200 copy "dynamsoft_capture_vision_flutter: ^3.0.5200" to clipboard
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.

  1. With the implementation of the Image Source Adapter (ISA) interface, a seamless integration with DCV is possible, allowing easy access to various image sources.
  2. Dynamsoft Barcode Reader (DBR), Dynamsoft Document Normalizer (DDN), and Dynamsoft Label Recognizer (DLR) play crucial roles in reading barcodes, structures, and texts from images.
  3. Dynamsoft Code Parser (DCP) is utilized to extract meaningful fields from text/bytes results, ensuring optimal data parsing capabilities.
  4. 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.
  5. 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:

  1. Simplicity with Packable Scenarios
  2. Scalability with Pluggable Components
  3. Flexibility With Customizable Workflows
  4. High Performance With Shared Computations
  5. 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

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 #

Samples #

You can view all the Dynamsoft Flutter samples via the following links:

License #

Contact #

https://www.dynamsoft.com/company/contact/

56
likes
130
points
558
downloads

Publisher

verified publisherdynamsoft.com

Weekly Downloads

A Flutter plugin for Dynamsoft Capture Vision providing barcode scanning, document processing, and more.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter, meta

More

Packages that depend on dynamsoft_capture_vision_flutter

Packages that implement dynamsoft_capture_vision_flutter