|
Re: Calculating distance with an Axis Camera 206
With any vision system, you could fill in the area of the "square" target that is found with the "edge detection". This way you get a solid square.
Once you have a soild square, now run an "area detection" of the square.
This will get you a size. The bigger the area, the closer you are. The smaller the area, the further away you are.
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here: Repository
Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
|