View Full Version : Need help fine tuning vision algorithm
Turing'sEgo
01-02-2016, 04:29
I want to get the outer 4 corners of the targets, but all the methods I've tried are not as accurate as I'd like. Anyone have any ideas as to how I can do that? Image (http://imgur.com/lk5fy3N) of a few of my attempts
Greg McKaskle
01-02-2016, 06:48
It looks to me like you have the outer edges. Have you tried to solve for the line intersections?
Greg McKaskle
Hi,
I am not sure what is the vision library you are using. If you are using OpenCV, I could suggest using the function: convexHull.
http://docs.opencv.org/2.4/doc/tutorials/imgproc/shapedescriptors/hull/hull.html
JCharlton
01-02-2016, 12:22
Nice work!
For more accuracy you might try using the Find Edge function (in LabView it's under the Machine Vision palette). Once you have a rough idea of the size and location of the targets, Find Edges can do great things. I'm sure OpenCV can do something similar.
Can you post your code?
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.