我知道如何使用Tesseract从图片中提取文本,但有没有人可以告诉我如何从名片(通过扫描的图像文件)中提取姓名、电话号码和电子邮件?
我知道如何使用Tesseract从图片中提取文本,但有没有人可以告诉我如何从名片(通过扫描的图像文件)中提取姓名、电话号码和电子邮件?
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.
**/
}
我已经使用了NSDataDetector来识别电话号码和链接,它的工作很好。但是地址识别无法正常工作。