Go to Post Someone wake me up the day of Kickoff. - Andrew Schreiber [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 13-01-2006, 10:45
Phreakuency's Avatar
Phreakuency Phreakuency is offline
Registered User
AKA: Chris Lamport
#1058 (PVC Pirates)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Londonderry
Posts: 11
Phreakuency will become famous soon enough
Post My Notes on the camera

I made this thread so that everyone could discuss what they know about the camera and its uses. The more we work together, the better the chances of the vision working correctly.
Sincerely,
Phreakuency
__________________
~~All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer. (1925 IBM Maintenence Manual)~~

Last edited by Phreakuency : 14-01-2006 at 00:32.
  #2   Spotlight this post!  
Unread 13-01-2006, 10:55
Phreakuency's Avatar
Phreakuency Phreakuency is offline
Registered User
AKA: Chris Lamport
#1058 (PVC Pirates)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Londonderry
Posts: 11
Phreakuency will become famous soon enough
Smile Notes By Phreakuency

Here are some of the notes that I have gathered so far:
The default centered values for the camera are
  • Vertical: 120
  • Horizontal: 120
The maximum I believe is 255
When manually rotating the camera through either a telnet program or the GUI, the command is sv (SerVo) and then the servo you want (either 1 or 0) and the point value of the rotation
It does not add, so 150 is ALWAYS going to be the same
The camera automatically initializes on the boot, so you don't have to worry about that
For the best results, I turn on auto white gain
if you want the camera to move faster, you should change the step of the pan and tilt, which is in the GUI under Servo
I know that there is another version of the lens which will allow almost double the resolution, so I will try to get my hands on one and see if that could help with the tracking.
Truthfully, don't start by tracking the green. From what I've learned from using Lab View on last years robot, it is very hard to get the color green without some kind of filter, so try with someones shirt.
(you don't understand the feeling of getting it to finally work until it does, then its a rush)
And by the way, If you think this thread is useful, lets try to make it sticky, K?
Hope this helps some people
Sincerely,
Phreakuency
__________________
~~All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer. (1925 IBM Maintenence Manual)~~

Last edited by Phreakuency : 14-01-2006 at 00:20.
  #3   Spotlight this post!  
Unread 14-01-2006, 22:05
Phreakuency's Avatar
Phreakuency Phreakuency is offline
Registered User
AKA: Chris Lamport
#1058 (PVC Pirates)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Londonderry
Posts: 11
Phreakuency will become famous soon enough
Camera Got the Tweaks? Read Here!

If your camera has been possessed by a demon, or is just being arrogent and you have no idea why, you should try using the jumpers to reverse the axis.
The jumpers to do this are at the bottem. I have an image of them Here.
The jumper that is in Pink is for if your camera has a horizontal spaz problem.
The jumper that is in blue is for if your camera is tweaking up and down.
These should solve some problems you guys have!
Any questions, email me at Phreakuency@gmail.com
Sincerely,
Phreakuency
__________________
~~All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer. (1925 IBM Maintenence Manual)~~
  #4   Spotlight this post!  
Unread 14-01-2006, 22:27
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: Camera Got the Tweaks? Read Here!

A few camera control commands you might want to know:

"CR 18 8" to set RGB mode.
"CR 18 0" to set YCrCb mode.
"CR 3 saturation" to set the saturation value. With the illuminated target, a good value is 2.

In the CMUCam GUI, if you type in a number next to the "Track Yellow" button, then click the button, the saturation control register will be loaded with that value. Click stop and grab a frame to see what effect changing the saturation register has, and to get correct calibration numbers.

That was all I needed to get it running...
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #5   Spotlight this post!  
Unread 16-01-2006, 13:35
Phreakuency's Avatar
Phreakuency Phreakuency is offline
Registered User
AKA: Chris Lamport
#1058 (PVC Pirates)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Londonderry
Posts: 11
Phreakuency will become famous soon enough
People! PLEASE POST

I made this thread so that everyone could help everyone else. I would love it if people tell us what they know about the camera.
Thanks!
Sincerely,
Phreakuency
__________________
~~All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer. (1925 IBM Maintenence Manual)~~
  #6   Spotlight this post!  
Unread 17-01-2006, 14:05
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Notes on the camera

Well, I have yet to touch the camera this year (Yeah I know... I should probably get on that)

Last year, however, we set up the camera, calibrated it and brought over a freshly painted green target. One problem, the camera kept running away from it! It was like it was scared of it. We later found out that there was an inverse tracking bit that was set. So, if you have this problem, check for a setting called "Inverse Tracking" or something of that sort.
__________________
http://www.mikesorrenti.com/
  #7   Spotlight this post!  
Unread 18-01-2006, 11:16
steveg's Avatar
steveg steveg is offline
Livin' the Dream
AKA: Stephen Guerrera
no team
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Boston, MA
Posts: 70
steveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to beholdsteveg is a splendid one to behold
Send a message via AIM to steveg
Re: Notes on the camera

Quote:
Originally Posted by Mike
Well, I have yet to touch the camera this year (Yeah I know... I should probably get on that)

Last year, however, we set up the camera, calibrated it and brought over a freshly painted green target. One problem, the camera kept running away from it! It was like it was scared of it. We later found out that there was an inverse tracking bit that was set. So, if you have this problem, check for a setting called "Inverse Tracking" or something of that sort.
This year, if you're modifying Kevin Watson's excellent tracking code to suit your needs, you need to edit tracking.h and change PAN_ROTATION_SIGN_DEFAULT or TILT_ROTATION_SIGN_DEFAULT if the servos are turning the wrong way.

EDIT:

Sorry, to clearify, that's only if you're using his streamlined code. If you're using the bells and whistles version, you should go to the tracking menu and edit it there.

Last edited by steveg : 18-01-2006 at 11:22.
  #8   Spotlight this post!  
Unread 18-01-2006, 12:15
kborer22's Avatar
kborer22 kborer22 is offline
kb
AKA: kb
FRC #0125 (Nutrons)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2000
Location: Boston
Posts: 114
kborer22 has much to be proud ofkborer22 has much to be proud ofkborer22 has much to be proud ofkborer22 has much to be proud ofkborer22 has much to be proud ofkborer22 has much to be proud ofkborer22 has much to be proud ofkborer22 has much to be proud ofkborer22 has much to be proud of
Send a message via AIM to kborer22
Re: Notes on the camera

i dont know how much this helps but the range on the camera is AMAZING! we were able to sucessfully find is at 143ft away!

http://nutrons.dbrl.net/kevin/

that is a link to some vids and a pic of how powerful this camera really is
__________________
NUTRONS 125
2007 Boston Regional Champs (125, 126, 69 NU-Hyper-Force!)

MORTTeam 11
2004-Palmetto Regional Champs
2004-Palmetto Regional Daimler Chrysler Team Spirit Award
2005-NJ Chairman's Award Winner
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
How To Use the Google Camera generalbrando Kit & Additional Hardware 2 07-02-2006 16:00
Camera Help (New to Camera Programming) Idaman323 Programming 6 14-01-2006 03:56
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Unresponsive camera neilsonster Programming 9 17-02-2005 08:51
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


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

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