如何以编程方式从iphone的名片中获取姓名,电子邮件ID和电话号码?

时间:2021-04-10 08:55:56

I know how to extract text from images using Tesseract, can any one tell me how to extract the name , telephone number and email from a business cards(Image File by scanning). Tutorials would be nice.

我知道如何使用Tesseract从图像中提取文本,任何人都可以告诉我如何从名片中提取姓名,电话号码和电子邮件(扫描图像文件)。教程会很好。

Any help will be highly appreciated

任何帮助将受到高度赞赏

4 个解决方案

#1


3  

Tesseract Optical Character Recognition (OCR) http://maniacdev.com/2011/08/example-tesseract-optical-character-recognition-ocr-demo-with-source/

Tesseract光学字符识别(OCR)http://maniacdev.com/2011/08/example-tesseract-optical-character-recognition-ocr-demo-with-source/

reads text from image. Once you have the text you can write your own method which will take the text and return the desired result.

从图像中读取文本。获得文本后,您可以编写自己的方法,该方法将获取文本并返回所需的结果。


void detectCharacters(String text){
/**
if you want to detect email search for keyword "Email","email","e-mail",
 "mail-id", etc and read the characters till next empty space or new line is found.
use same thing for name, phonenumber.
**/

}

#2


2  

I used Camcard and it is good. They are taking more time to approve SDK request, but its easy to use and straight forward.

我使用了Camcard,这很好。他们花了更多时间来批准SDK请求,但它易于使用且直接。

try - http://dev.camcard.com

尝试 - http://dev.camcard.com

#3


1  

Use NSDataDetector_Class to find email, phone number , Link, timeZone, Date, Address, Duration etc in a given string.

使用NSDataDetector_Class查找给定字符串中的电子邮件,电话号码,链接,时区,日期,地址,持续时间等。

Reference

Sample Codes

#4


0  

I have used NSDataDetector for phone number and link. Its working fine. Address detection is not working.

我已经使用NSDataDetector获取电话号码和链接。它的工作正常。地址检测不起作用。

#1


3  

Tesseract Optical Character Recognition (OCR) http://maniacdev.com/2011/08/example-tesseract-optical-character-recognition-ocr-demo-with-source/

Tesseract光学字符识别(OCR)http://maniacdev.com/2011/08/example-tesseract-optical-character-recognition-ocr-demo-with-source/

reads text from image. Once you have the text you can write your own method which will take the text and return the desired result.

从图像中读取文本。获得文本后,您可以编写自己的方法,该方法将获取文本并返回所需的结果。


void detectCharacters(String text){
/**
if you want to detect email search for keyword "Email","email","e-mail",
 "mail-id", etc and read the characters till next empty space or new line is found.
use same thing for name, phonenumber.
**/

}

#2


2  

I used Camcard and it is good. They are taking more time to approve SDK request, but its easy to use and straight forward.

我使用了Camcard,这很好。他们花了更多时间来批准SDK请求,但它易于使用且直接。

try - http://dev.camcard.com

尝试 - http://dev.camcard.com

#3


1  

Use NSDataDetector_Class to find email, phone number , Link, timeZone, Date, Address, Duration etc in a given string.

使用NSDataDetector_Class查找给定字符串中的电子邮件,电话号码,链接,时区,日期,地址,持续时间等。

Reference

Sample Codes

#4


0  

I have used NSDataDetector for phone number and link. Its working fine. Address detection is not working.

我已经使用NSDataDetector获取电话号码和链接。它的工作正常。地址检测不起作用。