samedi 16 juillet 2016

OCR Business Card Reader Android

I'm trying an android project, which uses your tess-two library for OCR process. Actually the main theme of the project is to scan a Business card and extract the details from the recognized text and store the details directly into the contact.

I used regex Pattern and Matcher to extract the data from the recognized text.

  p = Pattern.compile("^([A-Z]([a-z]*|\\.) *){1,2}([A-Z][a-z]+-?)+$", Pattern.MULTILINE);
  m = p.matcher(str);

  if (m.find()) {
    extras.putCharSequence(Insert.NAME, m.group());
  }

I got reference from eyes-free ScannerActivity. http://ift.tt/29Lzw1c

I can able to extract Name, Phone no., email id, website. But could not extract Title, Company Name and Address.

Pls guide me, Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire