Go to Post Ah, free slave labor. One of the many benefits of being a mentor - Ari423 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 15-01-2017, 15:16
OreNPluS OreNPluS is offline
Registered User
FRC #1577 (Steampunk)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Isarel
Posts: 10
OreNPluS is an unknown quantity at this point
Using 2 Cameras

Hello everyone
So, i was able to solve the problem that i couldn't use the camera on the new dashboard, it is working now, but my team want to use 2 cameras on this year's robot, the first camera works just fine and it seems that the dashboard should support getting image from 2 cameras but it doesn't work...

i looked into the vision processing vi and i added another code to read the 2nd camera, i called it camera1 (the first is just camera) and i assigned it to USB 1 (again, the first camera is on USB 0), but the 2nd camera doesn't work ... (the first on the other hand, works).

when i looked into the web dashboard of the roborio (roborio-1577-frc.local) and it says that there is 2 cameras connected to the roborio .... (and yes, both of them are usb cameras).

someone knows what setup does it need to work ?
__________________
2012-2015 FLL Teams (Programmer)
2016-Present FRC #1577 Steampunk (Programmer)
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2017, 15:23
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Using 2 Cameras

Are you getting a message on the window where the 2nd camera image should be displayed?

There can be an issue using two USB cameras if the requested total bandwidth would exceed the USB limits, then the 2nd camera image is rejected.

You can try reducing the first camera image to it's minimum 160x120 and restarting the roboRIO.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2017, 15:42
OreNPluS OreNPluS is offline
Registered User
FRC #1577 (Steampunk)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Isarel
Posts: 10
OreNPluS is an unknown quantity at this point
Re: Using 2 Cameras

Quote:
Originally Posted by Mark McLeod View Post
Are you getting a message on the window where the 2nd camera image should be displayed?

There can be an issue using two USB cameras if the requested total bandwidth would exceed the USB limits, then the 2nd camera image is rejected.

You can try reducing the first camera image to it's minimum 160x120 and restarting the roboRIO.
that actually worked, but the image size is too low for us, is there any way to make it work on higher image size ???
__________________
2012-2015 FLL Teams (Programmer)
2016-Present FRC #1577 Steampunk (Programmer)
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2017, 16:01
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Using 2 Cameras

Experiment with different settings, resolution, fps, compression now that you know how to get both working.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2017, 15:21
JeffB JeffB is online now
Registered User
FRC #5052 (RoboLobos)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2014
Location: Austin
Posts: 64
JeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to behold
Re: Using 2 Cameras

Are you hoping to have both cameras displaying their images at all times? Or, are they meant to do things at different times?

A lot of the problems you'll run into with cameras relate to the maximum bandwidth you're allowed to use during a match. As you saw here, reducing the image size allowed both to send. You can look at ways to play with the fps and resolution to help with this. You can also consider turning cameras on and off as needed so that you're not sending images and using that precious bandwidth when you're not planning to look at that camera (for example, if you have one camera on each side and a different view of "front of the robot" during different phases of your game)
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 17-01-2017, 06:01
henryfoster henryfoster is offline
Registered User
FRC #1382
 
Join Date: Jan 2017
Location: Brazil
Posts: 20
henryfoster is an unknown quantity at this point
Re: Using 2 Cameras

Quote:
Originally Posted by OreNPluS View Post
Hello everyone
So, i was able to solve the problem that i couldn't use the camera on the new dashboard, it is working now, but my team want to use 2 cameras on this year's robot, the first camera works just fine and it seems that the dashboard should support getting image from 2 cameras but it doesn't work...

i looked into the vision processing vi and i added another code to read the 2nd camera, i called it camera1 (the first is just camera) and i assigned it to USB 1 (again, the first camera is on USB 0), but the 2nd camera doesn't work ... (the first on the other hand, works).

when i looked into the web dashboard of the roborio (roborio-1577-frc.local) and it says that there is 2 cameras connected to the roborio .... (and yes, both of them are usb cameras).

someone knows what setup does it need to work ?
Hey, can you tell me how you solve the problem with the camera in the dashboard??
Reply With Quote
  #7   Spotlight this post!  
Unread 17-01-2017, 07:23
xszym's Avatar
xszym xszym is offline
Registered User
FRC #5883
Team Role: Programmer
 
Join Date: Nov 2016
Rookie Year: 2016
Location: Poland
Posts: 5
xszym is an unknown quantity at this point
Re: Using 2 Cameras

We tried to use 2 cameras a year ago. We did change the port on the button, but it's load for roborio and did not work well. I recommend using a different processor as the Rasberry Pi or Nvidia TX1 and just make new loop in dashboard to get video from here.

http://wpilib.screenstepslive.com/s/...on-programming

Good luck!
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 10:55.

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