Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vision-camera-dynamsoft-document-normalizer

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vision-camera-dynamsoft-document-normalizer

A React Native Vision Camera frame processor plugin for Dynamsoft Document Normalizer which can be used to create a document scanner.

  • 3.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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.

SDK Versions Used for Different Platforms

ProductAndroidiOS
Dynamsoft Document Normalizer2.x2.x

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

Blog

Build a Document Normalization React Native Vision Camera Plugin

Contributing

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

License

MIT

Keywords

FAQs

Package last updated on 10 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc