-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB camera issue #45
Comments
Can you please provide me the dependencies for this repo? Which versions of opencv and pytorch are you using? |
Hi!
The uvc_error is likely due to the purethermal module not getting detected
(which is also a UVC device).
As far as the versioning goes:
- OpenCV> 4.4
- pytorch > 1.9
The latest releases of both should work.
…On Sun, Nov 7, 2021 at 03:23 MK ***@***.***> wrote:
Can you please provide me the dependencies for this repo? Which versions
of opencv and pytorch are you using?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGHK36QSFFCSRSNFLO2H57LUKZORZANCNFSM5HLE2N2Q>
.
|
@tomek-l Thank you for responding. I am using a FLIR E75 camera along with legion usb camera. Both are getting detected by other codes but i am getting a device error while running this code. I am using opencv v4.4.0. I am getting warnings from gstreamer. Can you suggest anything? It'll be helpful. |
Hi @immkapoor, Here you would change: To something like: self._stream = cv2.VideoCapture("/dev/video1") Where |
I implemented this project with Raspberry Pi CM V2.1 which is a CSI (Camera Serial Interface) camera, which has different API than your USB camera - that's why you're getting errors. Keep in mind that when you get these two to work without errors, you will still have to make sure that the images from the two cameras "align". It's fairly simple for FLIR Lepton 3.5 and Rpi CM V2.1, because they have very similar field-of-view. |
@tomek-l I made the suggested changes. But I am still getting the same error. The usb camera is getting enabled but I am not able to see the camera's capture screen. Do you think it's because of warnings raised by gstreamer |
That's odd. Did you remove the call to |
@tomek-l No, i haven't made any changes in code. Just added legion camera in init.py and flir camera in rgb_thread |
@tomek-l Hey, I was able to solve the Gstreamer warning by replacing cv2.VIdeoCapture("/dev/video*") in cv2.VIdeoCapture("/dev/video", cv2.CAP_V4L2) and if I do make_imx_capture() then I get uvc device error and program terminates. If I replace that with another simple video capture then also I get ucv find device error but nothing comes on screen. Do you have any idea? |
@tomek-l I am not able to find the find device error in init code of libuvc wrapper. Can you please tell me where its definition is coming from? |
Hi @immkapoor These two are two separate methods of creating a camera device:
You have to choose just one. Since you are working with a USB camera, I recommend doing |
I am using a simple logitech usb camera with jetson xavier but I am getting a uvc_find_error error but the camera is getting detected and activated. Everything is working well with simple codes.
The text was updated successfully, but these errors were encountered: