3.0.1 • Published 3 days ago

vision-camera-dynamsoft-document-normalizer v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

vision-camera-dynamsoft-document-normalizer

A React Native Vision Camera frame processor plugin for Dynamsoft Document Normalizer.

It can detect document boundaries and run perspective transformation to get a normalized image.

Demo video

Versions

For vision-camera v2, use versions 0.x.

For vision-camera v3, use versions 1.x - 2.x.

For vision-camera v4, use versions >= 3.0.0.

Installation

yarn add vision-camera-dynamsoft-document-normalizer
cd ios && pod install

Add the plugin to your babel.config.js:

module.exports = {
   plugins: [['react-native-worklets-core/plugin']],
    // ...

Note: You have to restart metro-bundler for changes in the babel.config.js file to take effect.

Usage

  1. Scan documents with vision camera.

    import { detect } from 'vision-camera-dynamsoft-document-normalizer';
    
    // ...
    const frameProcessor = useFrameProcessor((frame) => {
      'worklet';
      const detectionResults = detect(frame);
    }, []);
  2. Scan documents from a file.

    let detectionResults = await detectFile(photoPath);
  3. Normalize a document image with the detection result.

    let normalizedImageResult = await normalizeFile(photoPath, detectionResult.location,{saveNormalizationResultAsFile:true});
  4. License initialization (apply for a trial license).

    await initLicense("your license");

Supported Platforms

  • Android
  • iOS

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

3.0.1

3 days ago

3.0.0

14 days ago

2.3.0

3 months ago

2.2.0

3 months ago

2.1.0

3 months ago

2.0.1

4 months ago

2.0.0

4 months ago

1.0.1

5 months ago

0.4.1

5 months ago

1.0.0

6 months ago

0.4.0

6 months ago

0.3.2

8 months ago

0.3.1

9 months ago

0.3.3

8 months ago

0.3.0

12 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago