View Single Post
  #14   Spotlight this post!  
Unread 10-03-2009, 00:12
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Target acquisition with camera- color issues

Quote:
Originally Posted by gwytheyrn View Post
I'm not sure if this is just our own problem, but when we run the camera example and the target is near the camera and near the top of the image, the masks begin to split apart, making the script believe that the target leaves the frame before it really should. The higher up the target is, the farther apart the two masks become until the top one flies off the screen (even though a large portion of the color is still on the actual input image). Anyone know a fix for this?

I've noticed that as well when calibrating the camera values in LV. We are actually using C++ to program the robot so I haven't investigated the LV specific issue thoroughly. I think it has with the masks overlapping when the target is near. LV seems to artificially separate the masks with dark gap in between that only get larger as the target gets nearer. I would guess this has to do with LV's approach of drawing boxes around the expected area for the target and allowing little overlap. In C++ I compensated for the lost target (initially LV could see but C++ couldn't) at these ranges by allowing more overlap. Keep on mind, I program in C++ and have only glanced at the LV code (I understand LV), so my understanding and guesses could be poorly concieved (but I thought they were worth stating)
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"

Last edited by The Lucas : 10-03-2009 at 00:14.