hey help me on urgent basis !
OCR functionality (read text from image) is not working after published the project on IIS asp.net using c# with Microsoft Visual Studio 2008 .net framework 3.5.
locally OCR functionality (read text from image) running fine.
kindly reply me as soon as possible i want to purchase this.
Hi Usman,
Thank you for considering Aspose APIs.
We have carried out investigation on the said issue. It is working perfectly fine.
We have used the latest version of Aspose.OCR for .Net 2.5.0. Following is the code
sample:
string simageFile = Server.MapPath("uploads/test_img_2.jpg");
//Initialize an instance of OcrEngine OcrEngine ocrEngine = new OcrEngine();
//Set the Image property by loading the image from file path location or an instance of MemoryStream
ocrEngine.Image = ImageStream.FromFile(simageFile);
//Initialize an instance of OcrEngine OcrEngine ocrEngine = new OcrEngine();
//Set the Image property by loading the image from file path location or an instance of MemoryStream
ocrEngine.Image = ImageStream.FromFile(simageFile);
Response.Write("OCR Image Loaded");
Response.Write("Start OCR Process");
//Process the image
if (ocrEngine.Process())
{
//Display the recognized text
Response.Write("Display the recognized text: ");
Response.Write(ocrEngine.Text);
}
//Process the image
if (ocrEngine.Process())
{
//Display the recognized text
Response.Write("Display the recognized text: ");
Response.Write(ocrEngine.Text);
}
After developing a web application, we have hosted the website to IIS. Following
are the settings:
<br>
</div>
<div><b>
Application Pool</b>:<br><br></div>
<div>
.Net Framework version : v2.0</div>
<div>
Managed Pipe line mode : Integrated</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>Sample application has been attached. Try it at your end. If the issue persists, please do not hesitate to contact us with detailed information. </div>
</div>
<div>
<br>
</div><div><br></div>