-
Notifications
You must be signed in to change notification settings - Fork 81
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
Problem uvc_open #56
Comments
If you are talking about something other than macOS 12, I'm not sure what the cause is. However, if you are trying to run on macOS 12, this seems to be a fundamental problem that cannot be solved forever.
The following issue is a good reference for this problem. I have yet to find a solution to this problem other than the above. |
Help meIf anyone has succeeded in capturing 16-bit temperature images from PureThermal module on macOS 12, I would appreciate it if you could tell me how to do it. Detail
As I understand, when we try to capture images using Refer to Apple macOS API: IOUSBHostObjectInitOption's 'deviceCapture'
Until macOS 11, the macOS API could be used with user privileges without difficulty, but in macOS 12, only apps with root privileges or Also, if this entitlement is forged for temporary use, the app will not be allowed to run by macOS. Therefore, it is necessary to have this entitlement officially granted by Apple, but Apple seems to have a policy of not granting it to any apps other than VMware, and not to regular applications. I also applied, but was rejected. A potential workaround seems to be the suggestion to use libusb/hidapi, another cross-platform library, instead of
The second possible workaround is to give up the cross-platform library and use macOS
So, unfortunately, my final remaining options are as mentioned before.
If anyone has succeeded in capturing 16-bit temperature images from PureThermal module on macOS 12, I would appreciate it if you could tell me how to do it. |
I experienced the same issue. Unable to capture the video stream using Python and PT2 + Lepton 3 using MacOS Monterey. |
Thanks for the information. I am using a Raspberry Pi 4. The problem was with the camera. I just changed it and it worked. Thank you |
I have confirmed that there is a version of uvc_open() that fails even on macOS 11. To be precise, uvc_open() fails on 11.6.3 or later due to
(I also modified my comment at the top of this issue.) |
I've tried this again, and as of now some of this has been cleaned up. At least for MacOS 12.4, with libuvc/libuvc master and libusb from homebrew, and the |
hi @shinya-ohtani , any update on this? strangely, i could route the purethermal2 video stream through OBS software then start the virtual camera from OBS and stream those virtual camera using cv2. But the bit depth is only 8 bit. |
Hi @mctosima could you share how you did this? I'm trying the same but trying to find the virtual camera index (for python) if proving problematic. I end up with the error: [ERROR:[email protected]] global cap.cpp:323 open VIDEOIO(AVFOUNDATION): raised unknown C++ exception! while running opencv-capture.py |
Really sorry that I didn't notice that there's a reply to me. Here's how you can connect to OBS virtual camera.
pip install pygrabber==0.1 from pygrabber.dshow_graph import FilterGraph
graph = FilterGraph()
print(graph.get_input_devices())# list of camera device
try:
device =graph.get_input_devices().index("name camera that I want to use it ")
except ValueError as e:
device = graph.get_input_devices().index("Integrated Webcam")#use default camera if the name of the camera that I want to use is not in my list
vid=cv2.VideoCapture(device) |
instead of OBS, VLC streaming works as well, but the delay is huge though |
Hi I also encountered this problem today, and I am pleased to introduce my solution, hope this helpful for others:
|
Hi, I'm trying to run the code. I'm using Pure Thermal 2. everything works fine, but at the end I get uvc_open error. Does anyone have an idea? How I can solve that and what is the base of the problem?
The text was updated successfully, but these errors were encountered: