HarvestProfit / react-native-rectangle-scanner

React Native Document/Rectangle Scanner
MIT License
199 stars 62 forks source link

Use rectangle scanner on existing Images [QUESTION] #78

Open jasmindevgirl opened 3 years ago

jasmindevgirl commented 3 years ago

Is there a way to use the rectangle scanner on an existing image uri ?

Thanks a lot

humphreyja commented 3 years ago

@jasmindevgirl Currently there isn't 😢. Take a look at this issue though. It's all about extracting the perspective transform code into a callable function. You could do the same thing with the detection stuff as well.

I abstracted the detection code into the RectangleDetectionController files. So it should be pretty straight forward to turn that into a callable function.