Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using AForge.Net to develop a OMR system that marks sheets by finding the equality of rectangles filled using a specific colour. using the blobcounter algorithm, it works fine if Microsoft word is used to fill the rectangles in the sheets. the location of objects in both images will be equal but if 2 different human beings (which is the ideal way it should work) fill the rectangles, the location will be slightly different even if it is the same rectangle filled in both sheets, so it will return a non equal value. How do i go about fixing this if possible? the codes looks like this:
C#
// Loop
foreach (Rectangle1 in rects1)
{
foreach (Rectangle2 in rects2)
{
...
// Equality
if (rectangle1 == rectangle2)
{
Console.Writeline("True");
Posted
Updated 20-Dec-14 0:12am
v2
Comments
BillWoodruff 20-Dec-14 0:51am    
When I see a question involving very complex 3rd. party controls, or libraries (even if, like AForge, open-source), and I know those controls/libraries have active support forums, I am always curious why someone doesn't use those forums first to try and ask questions.

I note that AForge now has a glyph recognition facility: have you considered that your problem might be the same as that of recognizing a glyph ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900