capture-vision-react-native-samples

Dynamsoft Capture Vision samples for React-Native edition

This repository contains multiple samples that demonstrate how to use the Dynamsoft Capture Vision React-Native Edition.

Integration Guide For Your Project

API References

Samples

Sample Name Description
ScanMRZ This sample illustrates how to scan passport and ID cards from video streaming.
ScanDocument This sample illustrates how to detect and deskew document pages from the video stream.
ScanVIN This sample illustrates how to Scan the VIN code from a barcode or a text line and extract the vehicle information from video streaming.

How to build and run a sample

  1. Enter a sample folder that you want to try
cd ScanDocument

or

cd ScanMRZ

or

cd ScanVIN
  1. Install node modules

Run the following command:

yarn install

or

npm install
  1. Prepare iOS

You must install the necessary native frameworks from CocoaPods to run the application. In order to do this, the pod install command needs to be run as such:

cd ios
pod install

Open the workspace file *.xcworkspace (not .xcodeproj) from the ios directory in Xcode. Adjust Provisioning and Signing settings.

  1. Build and Run

Go to your project folder and run the following command:

# using npm
npm run android

# OR using Yarn
yarn android

In the terminal, go to the project folder in your project:

# using npm
npm run ios

# OR using Yarn
yarn ios

If everything is set up correctly, you should see your new app running on your device. This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.

[!NOTE] If you want to run Android via Windows, You may encounter some build errors due to the Windows Maximum Path Length Limitation. Therefore, we recommend that you move the project to a directory with a shorter path.

[!NOTE]

How to use the new architecture of React Native (Optional)

How to enable new architecture in Android

How to enable new architecture in iOS

License

Contact

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