Go to Post We use the engines of our imagination on the robot all the time. FIRST being an engine of change after all. - Mark McLeod [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-06-2009, 07:15
ramymallouh ramymallouh is offline
Registered User
no team
 
Join Date: Jun 2009
Location: egypt
Posts: 2
ramymallouh is an unknown quantity at this point
RED COLOR DETECTION

hello everyone.....
i am in senior year mechatronics engineering.. my project is Active Traffic And Vehicle warning system..i am kinda new to labview so i'll get straight to the point ..i am now working on 2 USB camera system in the front and back of the vehicle connected to a laptop as a monitoring system...anyway...i want the 2 camera's to detect red color and display a message or a boolean LED or anything indicating there is a red color...i could acquire an image only by using a vi that i found online....but color detection is way better,.....i know i am asking much...but seriously i tried alot and still not able to do it....i am using labview 8.0 and 2 USB camera's that i found in my house that no one uses....and they are both working fine....so if anyone has this kind of program and a bit of explanation about it....i'll be very thankfull........i appretiate ur concern guys
Reply With Quote
  #2   Spotlight this post!  
Unread 15-06-2009, 18:58
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: 6,979
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: RED COLOR DETECTION

Unfortunately I cannot help you (I am not a programmer), but this (red color detection) is a task that was used by many teams in the 2009 FRC game. There is somewhere a VI that does this for you, and so long as you adjust the settings it seems quite reliable.

I am hoping that someone knows where the color tracking VI can be had.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 15-06-2009, 20:06
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: RED COLOR DETECTION

If you have access to the NI Vision Analysis package, then you can use either the FRC example for color tracking, or you can rebuild it from the color threshold VI. The color threshold takes in an upper and lower color used for thresholding. The results of the threshold will be a mask where the pixels are either ones or zeroes. One if the input pixel was between upper and lower in the color space, and zero otherwise. The next step is to call the particle analysis report VI to describe the blobs in the mask. It can give bounds, area, etc.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 28-06-2009, 09:36
ramymallouh ramymallouh is offline
Registered User
no team
 
Join Date: Jun 2009
Location: egypt
Posts: 2
ramymallouh is an unknown quantity at this point
Re: RED COLOR DETECTION

thatnk for the replys guys...i really appretiate ur concern.....but i couldnt even initiate the threshold.vi...it's not working i guess some of the libraries are not workin....and i dont know what to be put where so i can acquire image and analize it.....any other suggestions.....plz...it's urgent....my final presentation is next friday.....i am in deeep $@#$@#$@#$@#......
Reply With Quote
  #5   Spotlight this post!  
Unread 28-06-2009, 18:33
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: RED COLOR DETECTION

If a LV VI has a broken arrow, the button is not grayed out. You can still push it and it will list the errors and hopefully help you fix the issues. I don't know what you've installed or tried. Taking a guess, I suspect that you either don't have vision installed at all, or you haven't activated it. Other issues could be that the camera and computer aren't on compatible networks. You'll get much better help if you describe the errors you are seeing instead of describing how much of a hurry you are in.

Greg McKaskle
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera detection Jill Technical Discussion 10 14-12-2008 00:29
Does the Trackball Color Match your team Color??? ZInventor Kit & Additional Hardware 14 07-03-2008 20:09
Ganged Interrupt Edge Detection cprogrammer Programming 8 01-02-2008 10:52
rangefinding/object detection sciguy125 Electrical 14 13-01-2008 20:36
Collision Detection in Inventor? jlewellen Inventor 2 06-01-2005 21:29


All times are GMT -5. The time now is 08:32.

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