|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
|||
|
|||
|
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 -1 Code:
1 -1 I assume that your "rectangle" will look like Code:
/ \ / \ / \ Either way, it's pretty tough... Last edited by shuhao : 20-12-2011 at 22:42. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|