Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Need help fine tuning vision algorithm (http://www.chiefdelphi.com/forums/showthread.php?t=142959)

Turing'sEgo 01-02-2016 04:29

Need help fine tuning vision algorithm
 
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 of a few of my attempts

Greg McKaskle 01-02-2016 06:48

Re: Need help fine tuning vision algorithm
 
It looks to me like you have the outer edges. Have you tried to solve for the line intersections?

Greg McKaskle

lphung 01-02-2016 07:32

Re: Need help fine tuning vision algorithm
 
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/tutor...hull/hull.html

JCharlton 01-02-2016 12:22

Re: Need help fine tuning vision algorithm
 
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?


All times are GMT -5. The time now is 20:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi