View Single Post
  #1   Spotlight this post!  
Unread 20-12-2011, 22:38
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
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
for horizontal edge and

Code:
1
-1
for vertical edge,

I assume that your "rectangle" will look like

Code:
  / \
 /   \
/     \
as it seems to be on the ground, so go through your filtered image and try to recognize those pattern with something like a machine learning algorithm

Either way, it's pretty tough...

Last edited by shuhao : 20-12-2011 at 22:42.
Reply With Quote