andreluisjunqueira / react-native-document-scanner-android

Document scanner android, feature live detection, auto-capture, perspective correction :vibration_mode: :camera: -- :trophy:
MIT License
83 stars 32 forks source link

Get rectangle co-ordinates #31

Open SL-A-SH opened 5 years ago

SL-A-SH commented 5 years ago

In the IOS only document scanner package rectangle co-ordinates are returned like so:

onPictureTaken={data => this.setState({ image: data.croppedImage, initialImage: data.initialImage, rectangleCoordinates: data.rectangleCoordinates, })}

But here only the path is returned. How do I get the rectangle co-ordinates like in the package https://github.com/Michaelvilleneuve/react-native-document-scanner?