|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Problems with three cameras
We also had three cameras, connect to an RPi2, and hit the same device-swapping issue at some point. One of our programming students came up with a workaround that involved hard-coding the serial numbers of each attached camera. I'll see if he can post here or summarize the process for me to pass on.
|
|
#2
|
||||
|
||||
|
Re: Problems with three cameras
Just to be clear:
Your team is streaming 3 cameras at the same time? Instead of switching between the cameras? This would be good to read: http://unix.stackexchange.com/questi...n-after-reboot |
|
#3
|
||||
|
||||
|
Re: Problems with three cameras
Quote:
Quote:
|
|
#4
|
||||
|
||||
|
Re: Problems with three cameras
Cool, I believe that's the method we used.
|
|
#5
|
|||
|
|||
|
Re: Problems with three cameras
Heads up from 836, we had some issues with the ms cameras too. Not sure why, but colors were changing on us in some cases. I plan to go back to the axis for Champs and investigate the usb cameras more over the summer.
As to the question of running multiple cameras, we wrote some beta code from scratch. I'll send you some system calls that let you track cameras by usb port. |
|
#6
|
||||
|
||||
|
Re: Problems with three cameras
Quote:
Initial experiments on a roborio with a hub indicate that the by-path positions are indeed stable across device insert/removals and reboots. I'm not 100% sure of the best way to test this, but I'll add the information to mjpg-streamer's documentation anyways. |
|
#7
|
||||
|
||||
|
Re: Problems with three cameras
We were using three cameras on our robot this year (Forward drive, intake alignment, and reverse). They were spare HP cams the school had lying around, all identical. They also didn't have any identifying characteristics from the USB side of things and the RoboRIO would somewhat randomly assign them cam0 cam1 and cam2.
What we did was to use the SmartDashboard to set the camera names and the code that toggled the camera feeds used those values. Took an extra 15-30s once FMS came up on the field to switch through the cameras and make the settings changes, but it worked fine from there on. |
|
#8
|
||||
|
||||
|
Re: Problems with three cameras
Quote:
Does this help? http://superuser.com/questions/74803...ng-usb-devices Last edited by techhelpbb : 11-04-2016 at 23:40. |
|
#9
|
||||
|
||||
|
Re: Problems with three cameras
Quote:
Unfortunately, it looks like at the moment OpenCV won't allow using devices other than /dev/videoX. I've patched OpenCV and pushed a pull request to the OpenCV repo, hopefully they'll take it and it'll work in 3.2. |
|
#10
|
|||
|
|||
|
Re: Problems with three cameras
By the way, NIVision does allow you to open the UVC camera in any mode that it enumerates. The WPILib VIs parse and compare the size and framerate. The DB in HW mode uses the JPEG mode while the SW uses YUV and compresses with the roboRIO. I don't have a ton of experience with multiple cameras, but NIVision enumerates and attempts to keep the cameras in order and returns lots of device info to validate.
This, by the way is the acquisition lib, called IMAQdx, and not the processing lib. Greg McKaskle |
|
#11
|
||||
|
||||
|
Re: Problems with three cameras
I've posted the information I'm aware of and various information on the mjpg-streamer notes on the roborio-packages page:
https://github.com/robotpy/roborio-p...t-device-paths |
|
#12
|
|||
|
|||
|
Re: Problems with three cameras
Quote:
|
|
#13
|
||||
|
||||
|
Re: Problems with three cameras
Quote:
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|