Go to Post "If you can't hurdle, you can't win." "Remember to practice your obnoxious amateurism." . - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2007, 16:03
razer razer is offline
Registered User
FRC #1690
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 24
razer is an unknown quantity at this point
Unhappy PROBLEM - the cmaera doesnt detect the GREEN LIGHT

Hello,
Here is my problem: the camera doesnt detect the green light.
The Proccess:
I worked through this Guide: http://www2.usfirst.org/2007comp/oth...orkbook_R1.pdf
and i did everything right, i passed the assembly (successfully) and then i stepped to the Vision Sensor Setup.
everything is good till i need to use the "2007 Target.cfg" in the LabView, i dont have this file because i dont know where to get it, so i downladed the file from the LabView website, the 2006 version - i downloaded all the GUI...
anywqy, now im using the file "2006 Target.cfg" instead of the 2007's version, and at the beginning i went theough the calibration on pages 17 - 19.

it didnt work. i tried the YCrCb Calibration on pages 27 - 34, because i want this color space (look at question #5: http://kevin.org/frc/camera/), and it didnt work either.

The details of the problem:

when i use the LABVIEW i see exactly as i supposed to see (i think...) - i see on the "Pixel BitMap" black background and a light-bluerectangle (which is the green light. and i finished everything in the documents (everything i needed).
now, im trying to let the camera find the green light (connecting the DB9 cable to the program port on the RC, and so on...), and i start the camera, and it is searching the green light, and very few times it find the green light, but then escaping back to it's beginning position and begin to search again.
the distance of the green light doesnt matter - sometimes even if its less then 1 meter, but sometimes the camera sees the green light from 1 meter, but the confidence is not high.
when i change the camera's parameters such as writen on page 41 (i went throught the previous pages of the MPLAB Config.), it doesnt see the green light at all... no matter the distance...

does anyone know what should i do? im working on it almost 1 week and i didnt solve this problem yet and i dont know what to do. need help.
thanks, Nir
  #2   Spotlight this post!  
Unread 29-01-2007, 18:06
1594code 1594code is offline
Registered User
FRC #1594
 
Join Date: Feb 2006
Location: New York
Posts: 16
1594code is an unknown quantity at this point
Re: PROBLEM - the cmaera doesnt detect the GREEN LIGHT

I'm not sure if this will help you, but the behavior of your camera sounds like Kevin Watson's FAQ #9. He says this is caused by diligently following the instructions and mouting the camera upside down. The camera's power switch should be down at the bottom.

(See the FAQ at http://kevin.org/frc/camera)
  #3   Spotlight this post!  
Unread 29-01-2007, 18:10
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: PROBLEM - the cmaera doesnt detect the GREEN LIGHT

After you got your picture in labview, did you update the parameters in camera.h, recompile the code and send the code in?
  #4   Spotlight this post!  
Unread 29-01-2007, 21:53
geeknerd99's Avatar
geeknerd99 geeknerd99 is offline
Fire Hazard
AKA: Daniel Lin
FRC #0401 (Hokie Guard)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Blacksburg, VA
Posts: 276
geeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud ofgeeknerd99 has much to be proud of
Send a message via AIM to geeknerd99 Send a message via MSN to geeknerd99 Send a message via Yahoo to geeknerd99
Re: PROBLEM - the cmaera doesnt detect the GREEN LIGHT

Same problem here, both with the menu that the camera has and by changing the parameters in camera.h. (Or was it tracking.h? One or the other)

Frankly, there needs to a sticky or something regarding what to do if all else fails. And yes, I read the FAQs, yes, I calibrated the camera properly, yes, I can see it fine in Labview, yes, I installed the board switch-down, yes, I changed my parameters in whatever ".h" the parameters were in, recompiled and uploaded.....

I'm stumped too. According to the workbook and the rest of the internet, I should be able to track the light. But it's not working. Any other suggestions that might be the magic bullet to make it work?
__________________
  #5   Spotlight this post!  
Unread 30-01-2007, 00:48
razer razer is offline
Registered User
FRC #1690
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 24
razer is an unknown quantity at this point
Re: PROBLEM - the cmaera doesnt detect the GREEN LIGHT

Quote:
Originally Posted by bear24rw View Post
After you got your picture in labview, did you update the parameters in camera.h, recompile the code and send the code in?
no, i didnt change it through 'camera.h' but on the Terminal Window of the IFILoader i changed the parameters (as writen on page 41, on the PDF i mentioned in the main thread), and then the camera didnt see it at all.. is it the same? ill try it today again... but anyway i need more solutions because i dont think this might be the problem.
thanks,
Nir
Closed Thread


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
Following the Green Light with robot. Wompas Programming 0 26-01-2007 17:34
Help How do i assemble the green target light?? jesusescobar Electrical 2 26-01-2007 17:32
Lights (not the green target light) FourPenguins Electrical 10 23-01-2007 13:23
camera trouble,cant tell the green-light from regular white light Nimmy Programming 26 14-01-2007 14:53
Cmaera semi-running away from light amateurrobotguy Programming 3 04-02-2006 17:23


All times are GMT -5. The time now is 14:51.

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