ma-pe/react-native-opencv

Typical Use Cases

Opened this issue · 3 comments

ma-pe commented

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.

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

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

OCR <3

Happy to help, also ;)