You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importuvcprint(uvc.device_list())
cap=uvc.Capture(uvc.device_list()[0]["uid"])
controls_dict=dict([(c.display_name, c) forcincap.controls])
modes=cap.available_modesmode=modes[1]
cap.frame_mode=modeprint(f"{cap.name} running at {mode}")
frame=cap.get_frame_robust()
print(frame)
(video_venv) umeko@umeko-MC03:~/ws$ gdb python
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.2) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty"for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration"for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type"help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...
(No debugging symbols found in python)
(gdb) run ./test_pyuvc.py
Starting program: /home/umeko/ws/video_venv/bin/python ./test_pyuvc.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff4230700 (LWP 80989)]
[New Thread 0x7ffff1a2f700 (LWP 80990)]
[New Thread 0x7fffef22e700 (LWP 80991)]
[Thread 0x7fffef22e700 (LWP 80991) exited]
[Thread 0x7ffff1a2f700 (LWP 80990) exited]
[Thread 0x7ffff4230700 (LWP 80989) exited]
[Detaching after fork from child process 80999]
[New Thread 0x7fffef22e700 (LWP 81000)]
[{'name': 'HikCamera', 'manufacturer': 'HIK', 'serialNumber': 'F12357045', 'idProduct': 257, 'idVendor': 11231, 'device_address': 9, 'bus_number': 1, 'uid': '1:9'}]
[Thread 0x7fffef22e700 (LWP 81000) exited]
[New Thread 0x7fffef22e700 (LWP 81002)]
[Thread 0x7fffef22e700 (LWP 81002) exited]
[New Thread 0x7fffef22e700 (LWP 81003)]
[New Thread 0x7ffff1a2f700 (LWP 81004)]
HikCamera running at CameraMode(width=240, height=320, fps=30, format_native=7, format_name='MJPG', supported=True)
Thread 8 "python" received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7ffff1a2f700 (LWP 81004)]
0x00007ffff6ee074b in_uvc_populate_frame_ts_us () from /home/umeko/ws/video_venv/lib/python3.8/site-packages/uvc/uvc_bindings.cpython-38-x86_64-linux-gnu.so
but opencv-python can capture the frame normally.
The text was updated successfully, but these errors were encountered: