0
If you are wanting to separate documents between Passports, ID, or other kinds of documents, you can get this information by using the AutoZone method provided by the LEADTOOLS SDK. This will read your documents and assign zones to your input files. You can then get the OcrZoneType of the document to detect if Mrz is present, or if it contains additional data that makes up an ID among other things. Here is sample code which you can try:
- RasterCodecs codecs = new RasterCodecs();
- RasterImage image = codecs.Load("Path to input file");
-
- using (IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD))
- {
-
- ocrEngine.Startup(null, null, null, LEAD_VARS.OcrLEADRuntimeDir);
-
-
- using (IOcrPage ocrPage = ocrEngine.CreatePage(image, OcrImageSharingMode.AutoDispose))
- {
-
- ocrPage.AutoZone(null);
-
- foreach (OcrZone ocrZone in ocrPage.Zones)
- {
- Console.WriteLine(ocrZone.ZoneType);
- }
- }
- }
https://www.leadtools.com/help/sdk/v21/dh/fo/ocrzonetype.html
0
Hi,
Please refer the below link, it might helps you
https://stackoverflow.com/questions/37186144/scanning-images-from-asp-net
0
hello ,
Try this link-
http://stackoverflow.com/questions/6776837/on-button-click-how-to-scan-and-save-a-file-into-a-folder
http://stackoverflow.com/questions/19221209/scan-a-document-straight-to-my-site/19703118#19703118
http://support.leadtools.com/CS/forums/20960/ShowPost.aspx