<分区>
我知道如何使用 Tesseract 从图像中提取文本,谁能告诉我如何从名片(扫描图像文件)中提取姓名、电话号码和电子邮件?
<分区>
我知道如何使用 Tesseract 从图像中提取文本,谁能告诉我如何从名片(扫描图像文件)中提取姓名、电话号码和电子邮件?
最佳答案
Tesseract 光学字符识别 (OCR) http://maniacdev.com/2011/08/example-tesseract-optical-character-recognition-ocr-demo-with-source/
从图像中读取文本。获得文本后,您可以编写自己的方法来获取文本并返回所需的结果。
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.
**/
}
关于iphone - 如何以编程方式从 iPhone 中的名片中获取姓名、电子邮件 ID 和电话号码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13738646/