![]() |
GRIP with USB Camera
I am trying to use GRIP with my USB camera. I know the camera works and is configured correctly but, with my input set to webcam 0 it says it can not find the camera.
What source must I use to access my USB camera? |
Re: GRIP with USB Camera
What's the exact error message that happens when you create a camera source?
|
Re: GRIP with USB Camera
This is the part that I believe you are looking for.
Code:
WARNING: Failed to initialize CameraSourceCode:
Loading Dependency Injection Framework |
Re: GRIP with USB Camera
What model camera is it?
Just to make sure, it's plugged into the roboRIO, right? |
Re: GRIP with USB Camera
The model is not on it and the box is long gone. It is a logitech webcam of some type.
Putting the camera on the dashboard works fine, yes it is plugged into the RoboRio. |
Re: GRIP with USB Camera
I updated to Grip 1.1.1 unfortunately I am still unable to create my camera source.
When I plug the webcam into the labtop it works, so I know the camera is compatible and works. I can output the camera to the dashboard, therefore the camera is operation when plugged into the roboRio. Code:
VIDEOIO ERROR: V4L: index 0 is not correct!Do I need to be using a different source when it is plugged into the RIO? |
Re: GRIP with USB Camera
I found my own problem. I should have read the error more carefully.
Code:
INFO: Loading file /home/lvuser/project.grip |
Re: GRIP with USB Camera
Quote:
|
Re: GRIP with USB Camera
I am also trying to get my Microsoft LifeCam 3000-HD to work, but using RoboRealm. After using the FRC_CameraClient module, I get the error "Invalid Jpeg Format". It works fine when connecting directly to the PC. The only other discussion I have found about this is in this (http://www.roborealm.com/forum/index.php?thread_id=5472) RoboRealm thread:
"It seems that they are using jpeg images but with a couple bytes at the beginning of the stream that indicate size, fps, etc. Its not a standard stream format so we'll have to create something specific to handle these kinds of streams." Perhaps the RoboRio is formatting USB Webcam images specifically for the dashboard? Even if not, it seems to be an issue with the RoboRio, since other webcams are having this same issue. Later in that thread, however, the guy who was having issues said he was able to successfully get the image to come in right, but he doesn't really explain how. Edit: This (http://www.chiefdelphi.com/forums/sh...d.php?t=134404) thread details how the RoboRio handles USB Webcams. According to it, the images extracted from the webcam is missing a part of the normal JPEG header. While his modified camera viewer may not be useful, he also explains that the Intermediate Vision template will re-encode the images locally. |
Re: GRIP with USB Camera
This defiantly seems to be the problem.
It seems to get closer if you don't start the camera in the code. It can at least find the camera this way but, it has extraneous data. Code:
VIDEOIO ERROR: V4L/V4L2: VIDIOC_S_CROP |
Re: GRIP with USB Camera
Just got RoboRealm to pick up the USB Webcam image using the Intermediate Vision example program.
|
Re: GRIP with USB Camera
GRIP has loads of potential to be a very powerful tool, I'd like to see if we (being the users of chief delphi) can get it working.
|
Re: GRIP with USB Camera
Just curious if anyone has gotten GRIP to work on the RoboRIO using a USB camera. We have it running with the Axis IP camera, but the two MS lifecams we tried both throw that same error.
|
Re: GRIP with USB Camera
GRIP on the roboRIO with our USB Lifecam 3000-HD works without camera error but an old Logitech USB camera from the junk box throws those same errors of a bad couple of bytes in each frame. An Axis M1011 IP camera with GRIP running on the driver station PC runs for about a minute then the image freezes. We might guess the setup of the camera isn't right but the documentation on how to set it up is sparse and there aren't really very many choices to be made anyway.
We are having severe startup problems but if GRIP can make it past the first few seconds after starting on the roboRIO it runs fine albeit a little slow. |
Re: GRIP with USB Camera
Quote:
We're using a Logitech C920 USB, and were initially unable to get it directly working with GRIP running on a RPi2. Not too surprising, since that platform isn't not officially supported by GRIP. However, there's an awesome thread on Github with a lot of great community activity getting GRIP onto RPi2. With the info in that thread we were able to get that USB camera's feed published as an IP camera using mjpeg-streamer, which GRIP was then able to find and use on the RPi2, running Linux Arm. Might be something to try on the RoboRio? We haven't yet verified GRIP is publishing stuff to NetworkTables, we hope to verify that tonight. |
| All times are GMT -5. The time now is 00:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi