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
`from rich import print
from rich.logging import RichHandler
import uvc
def main():
for device in uvc.device_list():
cap = uvc.Capture(device["uid"])
for mode in cap.available_modes:
print(f"{cap.name} running at {mode}")
try:
cap.frame_mode = mode
except uvc.InitError as err:
print(f"{cap.name} mode selection - {err}")
continue
try:
for x in range(10):
frame = cap.get_frame_robust()
print("frame gray mean", frame.gray.mean())
# print(frame.img.mean())
except uvc.InitError as err:
print(f"{cap.name} getting frames - {err}")
cap.close()`
error message below :
Traceback (most recent call last):
File "F:\Python\python_libuvc\uvc.py", line 48, in
main()
File "F:\Python\python_libuvc\uvc.py", line 8, in main
for device in uvc.device_list():
AttributeError: module 'uvc' has no attribute 'device_list'
The text was updated successfully, but these errors were encountered:
I use windows system, pycharm。 python3.85.
`from rich import print
from rich.logging import RichHandler
import uvc
def main():
error message below :
Traceback (most recent call last):
File "F:\Python\python_libuvc\uvc.py", line 48, in
main()
File "F:\Python\python_libuvc\uvc.py", line 8, in main
for device in uvc.device_list():
AttributeError: module 'uvc' has no attribute 'device_list'
The text was updated successfully, but these errors were encountered: