Go to Post There is no charge. We just want to help. We are family… - emnasson303 [more]
Home
Go Back   Chief Delphi > Technical > Kit & Additional Hardware
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 05-05-2012, 20:04
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Colour Recognition

Others will fill in the details, here's the "big picture" version:

To follow a line, you look down with 3 sensors (one left, one center, and one right). If the center sensor "sees" the line, you go forward. If the left sensor "sees" the line, you turn left (towards the line). Right sensor, same thing.

OK, now let's say you must follow the RED line and ignore all the others. You make your sensor able to tell the difference, and just do what I wrote above.

Now, instead of 3 sensors, you have a color camera.

The 'follow' part just analyzes the camera image, and if the 'line' is to the left, you turn left (towards the line) until it's centered...then go forward. If it's a RED line, then you just "look" at red.

The color part is actually pretty easy. A color camera gives you four 'channels' of information, red, green, blue and luminance (think 'brightness'). These can be separated and analyzed separately in software.

The 'follow' thing is a tiny bit harder, but basically you identify the "blob" representing the line, and do some math to find the center of the blob. The center will be either left, right or center.... get it?
(By the way, you only have to evaluate the 'blob' along a horizontal line, not the full height of the camera image - that makes it a lot easier, since it is in one dimension and not 2)

I hope this helps you understand the concepts behind what you are trying to do. Of course, you can get really crazy and follow the "thin" line, or the double yellow, or look ahead and anticipate the next turn, or... But let's get the basics down, then you can run wild with the cool-factor stuff.

Don
__________________

I am N2IRZ - What's your callsign?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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