react-native-opencv icon indicating copy to clipboard operation
react-native-opencv copied to clipboard

Typical Use Cases

Open ma-pe opened this issue 6 years ago • 3 comments

In order to have an idea, what the API may look like, I'd like to know what are the typical use cases you want to achieve using opencv.

For example:

  • Grayscale a remote-image and use it in react-native

I can't guarantee, that the api will cover all of these use cases shortly, but I promise to take them into consideration.

ma-pe avatar Feb 03 '18 09:02 ma-pe

Hey Malte,

we at http://fragdenstaat.de would like to use this module to scan documents via the smartphone camera. Currently, our users receive a lot of official postal responses (A4) and we want to digitize them more easily. So the workflow would be:

  1. record Photo
  2. give the photo to your module
  3. openCV magic: align, grayscale etc.
  4. your models returns the picture to RN. If the resulting image is bad, go back to step 1.
  5. append document to a PDF

There is also a similar project currently going that needs this kind of scanning functionality but I am not sure if they use RN or not: http://www.openschufa.de

I am also happy to help out but I am not super confident with all the native code.

Best Wishes Johannes

jfilter avatar Feb 23 '18 23:02 jfilter

Hi Malte,

Thanks very much for taking up this particular challenge!

I'm trying to build a mobile document scanner app also, so here's my list of desirables:

  1. Align/Rotate
  2. Crop to edge of document
  3. Optional Greyscaling (in case the user wants colour)
  4. OCR

Happy to test anything you come up with! My comfort level with any native code is only fractionally above zero so not likely to be able to help out with the dev side of things, sorry!

Good luck and thanks again! Rob

booleanBoy avatar Mar 01 '18 14:03 booleanBoy

OCR <3

Happy to help, also ;)

sospedra avatar Jul 12 '18 07:07 sospedra