Aspose Examples Dashboard Error/Bug report

Instead of tweeting more and more bugs I list my findings here and like yesterday I hope they get fixed soon. Most are very easy fixes that I see as probebly upgrade isues or plain forgot to rewrite quick prototypes (or maybe the newer OCR engine made some examples break?)

From the dashboard in Aspose.OCR we have "Programmers Guis/Working with OCR Features"
The example: Detecting Text Blocks On The Image
is broken, it will give ‘System.IndexOutOfRangeException’
because of:

//Display text block locations
Console
.WriteLine(ocrEngine.Text.PartsInfo[0].Box);
Console.WriteLine(ocrEngine.Text.PartsInfo[1].Box);
replace with:
//Display text block locations
foreach (var part in ocrEngine.Text.PartsInfo)
{
Console.WriteLine(part.Box);
}
and it will work on the example file as well as other files.


From the dashboard in Aspose.OCR we have "Programmers Guis/Working with OCR Features"

The example: Performing OCR on an Image
The example: Extracting Text From Part Of An Image
The example: Read The Part Information Of Reconized Text

These are missing or pointed to the wrong location for the example image. (you either create the folder and add the missing example or need to point it to 1 directory where they all can find it. some examples seem to already have their own example)

The example: Adding User Defined Recognition Blocks
is not realy broken, I needed to open it in VS first, run once there and the demonstration will work (precompiled bin missing?)

The example: Setting OcrEngine to Recognize Only White Listed Characters
Nice example, works. Would be nice to include:
//############################################################ 
// See “Get Notification for Each Recognized Word” for the notifier basics
//Get an instance of INotifier
INotifier processorWord = NotifierFactory.WordNotifier();

//Write a delegate to handle the Elapsed event
processorWord.Elapsed += delegate
{
//Display the recognized text on screen
Console.WriteLine(processorWord.Text);
};

// Add the word processor to the OcrEngine
ocrEngine.AddNotifier(processorWord);

        <span style="color:#57a64a;">//############################################################ END of Notifier</span></pre>after:<br><pre style="font-family:Consolas;font-size:13;color:gainsboro;background:#1e1e1e;"><span style="color:#57a64a;">//Set the Image property of OcrEngine object</span>
        ocrEngine<span style="color:#b4b4b4;">.</span>Image <span style="color:#b4b4b4;">=</span> <span style="color:#4ec9b0;">ImageStream</span><span style="color:#b4b4b4;">.</span>FromFile(dataDir<span style="color:#b4b4b4;">+</span> <span style="color:#d69d85;">"Sampleocr.bmp"</span>);

To realy demonstrate it works. (this could help, but not nececeary. )


Thats it so far, hope I dont find real errors anymore soon. examples like above are no error, just a feeling to complete an example.

two final notes, the restriction for evalutation is realy realy tiny. so I might consider contacting you guys for some Bigger evaluation version. Also I dont think example names should be writen with Capitals on each word. But because english isnt my native language I might be incorrect. Also forgive my english, im from the netherlands and “only” 28 years young. I posted this to help you, Aspose and people looking at the Example Dashboard, wich I find very helpfull, find information quickly and easy to use.


Hi Nico,


Thank you for trying out the Aspose Examples Dashboard, and sorry for the inconvenience caused to you. Please allow us some time to verify your mentioned issues in Aspose.OCR for .NET examples and take appropriate steps to address them. We will shortly get back to you with updates in this regard.

Hi again,


Thank you for your patience.

This is to inform you that we have fixed the issues as mentioned in your original post. Please note, the issues were caused due to the public API changes introduced by the latest version of Aspose.OCR for .NET 2.3.0 published in the previous week. Moreover, we have also enhanced the examples as recommend by you with the exception of following example.

  • Setting OcrEngine to Recognize Only White Listed Characters

The above mentioned example is to demonstrate the usage of Aspose.OCR for .NET API to recognize only white-listed characters. If we add the notification code for each recognized character, it will simply increase the complexity of this example.

Regarding the example naming convention, we are following this model for all Aspose examples, and it will not be feasible for us to change the names for each and every sample.

Regarding the extension in evaluation time, we would strongly recommend you to contact sales department by posting in Aspose.Purchase forum. I am sure that the sales department will find a way to extend your evaluation time period by issuing you another 30 day trial license.

Please feel free to contact us back in case you face any difficulty or have any concerns.