3
Answers

Scan Image In Asp.net

Photo of Habeeb

Habeeb

6y
1.8k
1
Hi,
 
I am working on an application in which, the user has to first Scan and upload Mulitple Documents based on document type like ID,Passport etc..
When the user Scans/uploads the document then first it should store in Some temp Folder. Only when the user  click save button , the system will generate the Unique document no and All the Scanned document will be uploaded to Actual Folder with unique  DocNO_filename format.
 
which is the best way to do it (i.e, scan app using asp.net and store it to temporary folder in the application) ?

Answers (3)

0
Photo of Marvin Reid
NA 576 149 4y
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:
 
  1. RasterCodecs codecs = new RasterCodecs();  
  2. RasterImage image = codecs.Load("Path to input file");  
  3.    
  4.          using (IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD))  
  5.          {  
  6.             // Start the engine using default parameters   
  7.             ocrEngine.Startup(nullnullnull, LEAD_VARS.OcrLEADRuntimeDir);  
  8.    
  9.             // Create an OCR page   
  10.             using (IOcrPage ocrPage = ocrEngine.CreatePage(image, OcrImageSharingMode.AutoDispose))  
  11.             {  
  12.                // Perform AutoZone   
  13.                ocrPage.AutoZone(null);  
  14.    
  15.                foreach (OcrZone ocrZone in ocrPage.Zones)  
  16.                {  
  17.                   Console.WriteLine(ocrZone.ZoneType); // show the types of zones  
  18.                }  
  19.             }  
  20.          }  
 https://www.leadtools.com/help/sdk/v21/dh/fo/ocrzonetype.html
 
0
Photo of Mageshwaran R
NA 10.8k 1.1m 5y
Hi,
Please refer the below link, it might helps you
https://stackoverflow.com/questions/37186144/scanning-images-from-asp-net 
0
Photo of Rajan Singh
NA 1.5k 104.5k 6y
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