admin管理员组文章数量:1401634
I am using IronOCR to extract the content from a scanned image and trying to read the data as per need but I am unable to do so.
I am expecting the results to be
Name Of Student : HELLOUSER
Aadhar : 123456789
and other information as per need, I tried the following code but no luck
var ocr = new IronTesseract();
using (var ocrInput = new OcrInput())
{
ocrInput.LoadImage(@"C:\Tools\stud.png");
var ocrResult = ocr.Read(ocrInput);
string[] lines = ocrResult.Text.Split('\n');
foreach (string line in lines)
{
if (line.Contains(":"))
{
var parts = line.Split(':');
Console.WriteLine($"Key: {parts[0]}, Value: {parts[1]}");
}
}
}
本文标签: cIronOCR (tesseract) unable to extract the dataStack Overflow
版权声明:本文标题:c# - IronOCR (tesseract) unable to extract the data - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744316082a2600270.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论