Click here to Skip to main content
15,888,239 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Please how can I find the location of the black boxes (Objects) on the image on this link?
http://i58.tinypic.com/6p9i02.jpg
I need suggestions to know if there is any algorithm that can identify and display the precise locations of the black boxes on the image. Please It must not be codes, suggestions of possible algorithms that can do this task will be very helpful. Thank you. I don't really know how to create that link here so please copy and paste in your browser if u wanna see the image.
Posted
Comments
Sergey Alexandrovich Kryukov 5-Aug-14 23:07pm    
It must not be? What do you think it must be?
—SA

1 solution

I answered to similar questions several times. I advise to use AForge.NET, its blob recognition. I successfully used it and was pleasantly surprised with performance and quality of the results. Please see my answers:
URGENT PLZ - image Processing in c#[^],
image processing using Aforge.net >> I need the help[^],
Simple BLOB detection algorithm[^],
How to filter out the unwanted blobs in AForge.net ?[^],
Identify a black box on a bitmap file that contains black and white boxes[^],
blob detection in c#[^],
Convex "Hull" 2d.................................[^].

In those answers, you will find references to code sample demonstrating all the techniques you need. Additionally, you may need to apply some filters to improve contrast and the ability to recognize blobs. With the example of the image you showed, it won't be needed (perhaps you will need to negate it, which is way too simple).

—SA
 
Share this answer
 
Comments
Naija Coding 6-Aug-14 6:31am    
Yes and I credited you for that. I am able to recognise the objects i need. Using colour filtering and invert, I can filter the blobs to keep the colours I need. I can even do convex hull. but what i cannot do now is to get the location value of the filtered objects. I need it to compare the filtered image to another image.
Naija Coding 10-Aug-14 11:12am    
@Sergey Alexandrovich Kryukov Thank you. I asked the same question on AForge forum and it was made clearer to me. all these while what i actually needed was segmentation. And the blob counter already had it, i just needed to display it on a listbox. I now have it. I have the region segments for each blob. I'll go ahead processing it now and will come back if i have further questions.
Sergey Alexandrovich Kryukov 10-Aug-14 13:46pm    
You are welcome. Didn't I already answer that you have to compare a convex hull with parameters of a sample image? I remember, you wanted to compare with rectangles, which is pretty simple.
—SA
Naija Coding 10-Aug-14 15:17pm    
Yes you did, I should have looked better. Anyways you're my hero, hope to get more help from you here. Thanks
Sergey Alexandrovich Kryukov 10-Aug-14 16:48pm    
Good luck, call again.
—SA

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