8

I want scan and extract data from IDs and Passports, Which free plugins I use? Or how do I do it, To read the data and add this data to form.

Gurbela
  • 1,184
  • 2
  • 16
  • 40
  • Interesting.. Could you please provide more info on IDs, in past we have done project to extract information from US driving license. But it has PDF417 barcode which stores information. If you have similar type of ID card then you can use either barcode scanner to scan and retrieve information or you can use TT800 id card scanner which gives all the information from barcode or magnetic strip over the card. – Gaurav Oct 09 '18 at 10:39

3 Answers3

5

You can check this question on how to read text from images.

Having said text, since each field always has a fixed text before identifying what it is, if you know the id formats you want to support, you can implement that fairly easily (The text between "Name:" and "Surname:" is the person's name, and so on).

To get the images, you should use something like react-native-camera, or, if you are using Expo, its Camera API.

Filipe
  • 866
  • 5
  • 16
3

You divide the job into multiple steps

  1. Take a photo

  2. Load the image

  3. Image analyze find an OCR npm package

  4. Pass the text into your fields via props (or use the Context API)

Norfeldt
  • 8,272
  • 23
  • 96
  • 152
3

There are few OCR SDKs that enable you to do that. Check out https://github.com/Anyline/anyline-ocr-react-native-module or https://github.com/jonathanpalma/react-native-tesseract-ocr#readme which supports only Android for now.

pavle
  • 909
  • 14
  • 38