Finding subpixel position of fiducial shapes (Plus, Dot, Square)
Hi All,
New to OpenCV - Actually, so new that I haven't tried to run it .. yet. But wanted to figure out if I can use OpenCV for this before going down the wrong path.
I have a grayscale image, about 2000x1500 pixels, with a small shape (about 200x200 pixels) somewhere in the image. The shape is either a square, dot or plus. The trickiness is that the shape is "fuzzy" (out of focus) and contrast is low. I cannot get a better image of the shape, so crisp edges are definitely out.
What I need is an algorithm that (as quickly as possible) detects the center position of this fiducial shape and reports that back to my code. My preference is C++.
Any thoughts on whether this can (simply / easily) be done with OpenCV, and if so, how?
Thanks!
-- Edit:
I could not post a reply yet, so here's some more details: We're currently using Sherlock by Dalsa for this process, and need to move to Realtime on C++, hence the need to evaluate OpenCV. When looking through documentation and tutorials, it wasn't abundantly clear that OpenCV had simple functionality to detect shapes like I mentioned and give me subpixel coordinates of its center. All I was able to find were correlation-based algorithms and complex face-recognition stuff. Neither one would be applicable... Based on eshirima's suggestions, it looks like it will be doable though. I'll look into those more.
I'll try to add examples later today or tomorrow so you guys can weigh in if the contrast ratio would present a problem.
And to clarify -- no, I am not looking for others to do the work. Just trying to evaluate if I should consider OpenCV or not.
Thanks!
Have you tried this, this or this?
PS:If you truly expect help, you need to show some proof of work. As it stands, your question might be seen as you wanting someone else to do your work. Regardless of whether you're new, you should try something beforehand.
Please include some (a lot) of sample images. GitHub or Google Drive can store the images for you.
Yes, please share some sample images with us. Hard to suggest anything without seeing what there is to work with.