Go to Post I don't care what Dean, Dave, Woodie, or whoever says at kickoff--if it isn't in the rules, it isn't in the rules. - EricH [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 08-03-2016, 09:21
whitetail's Avatar
whitetail whitetail is offline
Registered User
FRC #5407 (Wolf Pack)
Team Role: Operator
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Philadelphia
Posts: 48
whitetail is an unknown quantity at this point
Camera

We used a usb camera in our last event and weren't to happy with it. We want to switch to an IP camera. Which one would you recommend and if you use a co-processor which one do you use?
__________________
FRC Team 5407 -Driver, Programmer and Head Control Systems Engineer
2015 MAR Championship Rookie All Star Award
2015 MAR Hatboro-Horsham District Rookie All Star Award
2015 MAR Hatboro-Horsham District event Winner(Thanks 2590, 2607)
Reply With Quote
  #2   Spotlight this post!  
Unread 08-03-2016, 10:50
Kyle Heaton's Avatar
Kyle Heaton Kyle Heaton is offline
I like volunteering.
FRC #0045 (TechnoKats)
Team Role: Leadership
 
Join Date: May 2014
Rookie Year: 2014
Location: Indiana, USA
Posts: 23
Kyle Heaton will become famous soon enough
Re: Camera

Why was your team not happy with that camera? Was it the Microsoft LifeCam?
__________________
Software Lead Student 2014-2015
Student Technical Lead 2015-2016


Tippecanoe District Winner - Perry Meridian District Winner - District Champs Semifinalists

Kokomo District Quarterfinalists - Dean's List Indiana District Finalist

Arkansas Regional Quarterfinalists - Boilermaker Regional Quarterfinalists
Reply With Quote
  #3   Spotlight this post!  
Unread 08-03-2016, 12:07
whitetail's Avatar
whitetail whitetail is offline
Registered User
FRC #5407 (Wolf Pack)
Team Role: Operator
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Philadelphia
Posts: 48
whitetail is an unknown quantity at this point
Re: Camera

The life cam has a 2 second delay on it maybe it is just that we have to use a
co-processor or is it in the programing.
__________________
FRC Team 5407 -Driver, Programmer and Head Control Systems Engineer
2015 MAR Championship Rookie All Star Award
2015 MAR Hatboro-Horsham District Rookie All Star Award
2015 MAR Hatboro-Horsham District event Winner(Thanks 2590, 2607)

Last edited by whitetail : 08-03-2016 at 12:10.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-03-2016, 12:18
Ninjastahr's Avatar
Ninjastahr Ninjastahr is offline
FRC Member
FRC #3928 (Team Neutrino)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Iowa
Posts: 30
Ninjastahr is an unknown quantity at this point
Re: Camera

Before you go to the Axis cam, consider the price. I know that when my team broke our Axis cam, a replacement was $200+, while a LifeCam is about $35.

I did notice that our Microsoft LifeCam does stream at a very low framerate, but it definitely doesn't have a two-second delay. Some programming options would be to decrease the quality of the image, decrease the amount of steps taken to process the image, or maybe have two different threads with one having output to the dashboard and the other doing your vision processing.

Last edited by Ninjastahr : 08-03-2016 at 12:22.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-03-2016, 13:41
bdaroz's Avatar
bdaroz bdaroz is online now
Programming Mentor
AKA: Brian Rozmierski
FRC #5881 (TVHS Dragons)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Albany, NY
Posts: 381
bdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud of
Re: Camera

Quote:
Originally Posted by Ninjastahr View Post
I did notice that our Microsoft LifeCam does stream at a very low framerate, but it definitely doesn't have a two-second delay. Some programming options would be to decrease the quality of the image, decrease the amount of steps taken to process the image, or maybe have two different threads with one having output to the dashboard and the other doing your vision processing.
We also have a significant delay on our RoboRIO-connected USB cameras outputing to the dashboard, about 1.5s or so. We've tried changing quality and image size and the image capture is on a separate thread (CameraServer). We've also tried both Java and C++ as well to no avail.

How are you processing your USB camera images?
Reply With Quote
  #6   Spotlight this post!  
Unread 08-03-2016, 13:43
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Camera

I would try the Logitech C920 USB2 camera.
That's what FRC11 has on their robot.

Using the CameraServer in Java on the RoboRIO I noticed a minimal delay on a private network streaming to the dashboard when not on the field.

I'd have to ask FRC11 how it went on the field.

It is possible that your other code on the RoboRIO is using up the CPU such that the USB camera is impacted.
I suppose the IP camera is one way to address that.

Last edited by techhelpbb : 08-03-2016 at 13:46.
Reply With Quote
  #7   Spotlight this post!  
Unread 08-03-2016, 14:00
cbale2000's Avatar
cbale2000 cbale2000 is online now
Registered User
AKA: Chris Bale
FRC #0703 (Phoenix)
Team Role: Leadership
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 928
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: Camera

Quote:
Originally Posted by techhelpbb View Post
I would try the Logitech C920 USB2 camera.
That's what FRC11 has on their robot.
I'll second this. The C920 worked great for us last year, we have 2 this year that we're working on the code to switch between them.
Reply With Quote
  #8   Spotlight this post!  
Unread 08-03-2016, 14:16
Stappy Stappy is offline
Registered User
FRC #5084
 
Join Date: Mar 2014
Location: Corunna
Posts: 22
Stappy is an unknown quantity at this point
Re: Camera

Just an added concern for those thinking about switching to a network camera. This years radio only has TWO ports. So one port for the Rio and one for the camera... No problem right? Except if you are in the pits and want to hook up your laptop to it via network cable. You will not be able to test vision or camera stuff as you do not have enough ports.

To get out of this jam last weekend we actually zip tied an 8 port hub we had lying around into the robot so we could test vision in the pit.
__________________
FridgeBot Inc
Providing robotic appliances since 2014!
Reply With Quote
  #9   Spotlight this post!  
Unread 08-03-2016, 14:17
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Camera

Quote:
Originally Posted by Stappy View Post
Just an added concern for those thinking about switching to a network camera. This years radio only has TWO ports. So one port for the Rio and one for the camera... No problem right? Except if you are in the pits and want to hook up your laptop to it via network cable. You will not be able to test vision or camera stuff as you do not have enough ports.

To get out of this jam last weekend we actually zip tied an 8 port hub we had lying around into the robot so we could test vision in the pit.
TrendNet plastic cased 5 port gigabit switch

Runs off 5V and the old D-Link radio power supply can power it.
Reply With Quote
  #10   Spotlight this post!  
Unread 08-03-2016, 14:38
Ninjastahr's Avatar
Ninjastahr Ninjastahr is offline
FRC Member
FRC #3928 (Team Neutrino)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Iowa
Posts: 30
Ninjastahr is an unknown quantity at this point
Re: Camera

Quote:
Originally Posted by bdaroz View Post
How are you processing your USB camera images?
We are processing the images using some code from NIVision in Java which isn't in the API. We found it by using ctrl+space in Eclipse and looking for functions that looked helpful. Basically, we get a HSL Threshold, sort the particles from that by size, and take the biggest one as the high goal. We then use imaqMeasureParticle.(whatever you are looking for) to find the center of the particle.
Reply With Quote
  #11   Spotlight this post!  
Unread 08-03-2016, 14:45
waialua359's Avatar
waialua359 waialua359 is offline
Mentor
AKA: Glenn
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Apr 2003
Rookie Year: 2000
Location: Waialua, HI
Posts: 3,294
waialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond repute
Re: Camera

Quote:
Originally Posted by Stappy View Post
Just an added concern for those thinking about switching to a network camera. This years radio only has TWO ports. So one port for the Rio and one for the camera... No problem right? Except if you are in the pits and want to hook up your laptop to it via network cable. You will not be able to test vision or camera stuff as you do not have enough ports.

To get out of this jam last weekend we actually zip tied an 8 port hub we had lying around into the robot so we could test vision in the pit.
Make sure you talk to CSA about running a static IP address, even though the manual specifically recommends not using one. Based on ours and a few others this past weekend, its the only way it'll work.
__________________

2016 Hawaii Regional #1 seed, IDesign, Safety Award
2016 NY Tech Valley Regional Champions, #1 seed, Innovation in Controls Award
2016 Lake Superior Regional Champions, #1 seed, Quality Award, Dean's List
2015 FRC Worlds-Carver Division Champions
2015 Hawaii Regional Champions, #1 seed.
2015 Australia Regional Champions, #2 seed, Engineering Excellence Award
2015 Inland Empire Regional Champions, #1 seed, Industrial Design Award
2014 OZARK Mountain Brawl Champions, #1 seed.
2014 Hawaii Regional Champions, #1 seed, UL Safety Award
2014 Dallas Regional Champions, #1 seed, Engineering Excellence Award
2014 Northern Lights Regional Champions, #1 seed, Entrepreneurship Award
2013 Championship Dean's List Winner
2013 Utah Regional Champion, #1 seed, KP&B Award, Deans List
2013 Boilermaker Regional Champion, #1 seed, Motorola Quality Award
2012 Lone Star Regional Champion, #1 seed, Motorola Quality Award
2012 Hawaii Regional Champions #1 seed, Motorola Quality Award
Reply With Quote
  #12   Spotlight this post!  
Unread 08-03-2016, 14:47
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,893
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Camera

Quote:
Originally Posted by Stappy View Post
Just an added concern for those thinking about switching to a network camera. This years radio only has TWO ports. ...
We are planning to use a router in the pits with the DHCP enabled in the router. The DHCP in the robot radio gets turned off for FMS play) It will be a little fiddlely having to move cables around, but will mean not waiting for fall back IPs.
__________________
If you don't know what you should hook up then you should read a data sheet
Reply With Quote
  #13   Spotlight this post!  
Unread 08-03-2016, 15:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera

Quote:
Originally Posted by Stappy View Post
Just an added concern for those thinking about switching to a network camera. This years radio only has TWO ports. So one port for the Rio and one for the camera... No problem right? Except if you are in the pits and want to hook up your laptop to it via network cable. You will not be able to test vision or camera stuff as you do not have enough ports.
I'd normally suggest using the USB connection to the roboRIO for a tether, but that wouldn't let you access the IP camera from your Driver Station computer unless you try configuring the roboRIO to do network routing.
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


All times are GMT -5. The time now is 22:18.

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