This repository contains multiple samples that demonstrate how to use the Dynamsoft Capture Vision Cordova Edition.
Sample Name | Description |
---|---|
BarcodeReaderSimpleSample |
This is a sample that illustrates the simplest way to recognize barcodes from video streaming with Dynamsoft Capture Vision Cordova SDK. |
cordova plugin add dynamsoft-capture-vision-cordova
If you use a sample as the template to initialize your project, you don't need to manually add the dependency. The dependencies will be added when you add the platforms.
Add the platform first with the following command.
cordova platform add android
Run the Project with the following command.
cordova run android
You might meet issues on gradle path if it is the first time to run Cordova on your Windows system. The following steps will help you on solving this issue:
- Open Environment Variables
- Look for Path in the System variables, open it.
- Click New and add the path of your gradle bin folder to the environment variables. For exmaple: "C:\Users\admin\.gradle\wrapper\dists\gradle-6.4-all\gradle-6.4\bin".
Add the platform first.
cordova platform add ios
Open the platforms/ios/SimpleBarcodeScanner.xcworkspace with Xcode. Complete the Signing & Capabilities section of the project configuration via Xcode to avoid any signature errors during the build.