Skip to content

tomasvarga/react-native-doc-scanner

ย 
ย 

Repository files navigation

React Native Document Scanner + image cropper ๐Ÿ“๐Ÿ–ผ

Document in progress...

React Native Document Scanner

Installation ๐Ÿš€๐Ÿš€

$ npm install https://github.com/tomasvarga/react-native-document-scanner.git --save

$ react-native link react-native-perspective-image-cropper

This library uses react-native-svg and react-native-image-size, you must install them too. See https://github.com/react-native-community/react-native-svg and https://github.com/eXist-FraGGer/react-native-image-size for more infos.

Android Only

If you do not already have openCV installed in your project, add this line to your settings.gradle

include ':openCVLibrary310'
project(':openCVLibrary310').projectDir = new File(rootProject.projectDir,'../node_modules/react-native-perspective-image-cropper/android/openCVLibrary310')

Crop image

  • First get component ref
<CustomCrop ref={ref => (this.customCrop = ref)} />
  • Then call :
this.customCrop.current.crop();

About

Perform document scanning, custom crop, resizing and perspective correction ๐Ÿ“๐Ÿ–ผ

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 97.5%
  • JavaScript 1.7%
  • Other 0.8%