![]() |
Detecting rectangles with the camera and Java
I'm a programmer for my team and I'm working on autonomous during the offseason, but for it to work properly, the robot has to be parallel with the sides of the field. I was thinking of aligning the robot to face the plexi sheet in front of the drivers' area, but I really have no idea how to make the robot actually recognize that rectangle. Help would be greatly appreciated.
|
Re: Detecting rectangles with the camera and Java
Apply an edge finding (both vertical and horizontal) algorithm. Try to scale your image down first (< 100x100) and take the grey scale for optimization.
Try the simplistic kernel of Code:
1 -1Code:
1I assume that your "rectangle" will look like Code:
/ \Either way, it's pretty tough... |
| All times are GMT -5. The time now is 22:19. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi