Go to Post I would have bought a bigger box of popcorn and sat up higher in the stands. In the middle. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 01-03-2010, 12:43
bgold bgold is offline
Registered User
None #0806
 
Join Date: Feb 2010
Location: New York
Posts: 3
bgold is an unknown quantity at this point
Yet another camera question.

I have my camera up and running, that's not the problem. The problem is that it doesn't pick up the soccer ball as a camera. I copied the camera classes straight from the original camera code and didn't change anything. Does anyone know what to change in the targetting code to allow the camera to pick up the soccer ball as opposed to other, minor cirlces?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-03-2010, 20:21
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,752
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: Yet another camera question.

There have been other threads on this, but the short version is that the circle/ellipse finder is not really ideal for finding 3D balls. The primary issue is due to the shadow cast by the ball onto its lower half, and the loss of contrast in that area.

There are some methods to try and locate the ball on the carpet, but none of the sample code includes it.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2010, 11:55
bgold bgold is offline
Registered User
None #0806
 
Join Date: Feb 2010
Location: New York
Posts: 3
bgold is an unknown quantity at this point
Re: Yet another camera question.

Are there any other alternatives to finding the ball besides finding it on the carpet?
Reply With Quote
  #4   Spotlight this post!  
Unread 02-03-2010, 15:14
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: Yet another camera question.

Could you please restate your question? It is vague and confusing enough that you may not get a useful response. This is the perfect example.
__________________
I don't need a signature.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-03-2010, 08:54
bgold bgold is offline
Registered User
None #0806
 
Join Date: Feb 2010
Location: New York
Posts: 3
bgold is an unknown quantity at this point
Re: Yet another camera question.

Quote:
Originally Posted by TubaMorg View Post
Could you please restate your question? It is vague and confusing enough that you may not get a useful response. This is the perfect example.
My apologies. I'm currently using the default camera code that was in the camera project. I didn't change any of the tracking code and whatnot. The code doesn't correctly pick up the soccer ball. It picks up portions of the ball here and there, but it's not consistent enough to run an effective autonomous mode off of. Are there any other ways I can change the camera tracking code so it picks up and locks onto the entire soccer ball? This is pretty important, seeing as how all our autonomous mode hinges on the camera working. I've seen some teams use the camera effectively, but I haven't seen any code that works 100% of the time.
Reply With Quote
  #6   Spotlight this post!  
Unread 09-03-2010, 10:48
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: Yet another camera question.

I see (no pun intended). You may want to look at what Greg said above to answer your question and work to implement alternative solutions. For example, though tracking a ball is rather difficult, locking on the target is fairly effective. So the next problem is to find the ball in autonomous. So you may not be able to see it, but your team has all the control on where to place balls before the game begins. In other words you will know how far the ball is from your starting position when you begin the match. If you can't track distance (no encoder or accelerometer), then you can try timing, which may be effective enough.
Good luck!
__________________
I don't need a signature.
Reply With Quote
  #7   Spotlight this post!  
Unread 15-03-2010, 20:49
Jeanne Boyarsky Jeanne Boyarsky is offline
Java Mentor
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 100
Jeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud of
Re: Yet another camera question.

Quote:
Originally Posted by bgold View Post
My apologies. I'm currently using the default camera code that was in the camera project. I didn't change any of the tracking code and whatnot. The code doesn't correctly pick up the soccer ball.
It's not designed to. The default camera code tracks the target not the soccer ball. We didn't try tracking the soccer ball, but had success with the target. Our camera is mounted too high to be useful for the soccer ball anyway.
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
Yet another camera issue adamdb Programming 13 26-05-2010 09:08
yet another No Camera Images on Dashboard thread oddjob C/C++ 11 29-01-2010 20:53
Yet another Camera thread... Pancake C/C++ 2 26-01-2009 11:42
yet another joystick question Stormhammer Rules/Strategy 2 19-01-2004 10:10
Yet another illustrator question ryan_f Computer Graphics 3 02-09-2003 16:10


All times are GMT -5. The time now is 11:16.

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