jetsonhacks / camera-caps Goto Github PK
View Code? Open in Web Editor NEWExamine the camera capabilities for V4l2 cameras
License: MIT License
Examine the camera capabilities for V4l2 cameras
License: MIT License
Just got my brand new AGX and successfully set it up. It is clear there are changes in this model from previous ones. I am following the instructions and I get the following:
python3 camera_caps.py
Traceback (most recent call last):
File "/home/bryan/camera-caps/camera_caps.py", line 17, in <module>
from PyQt5.QtCore import QSize
ModuleNotFoundError: No module named 'PyQt5'
bryan@ubuntu:~/camera-caps$ pip3 install datacl
I then installed python3-pyqt5.qtsvg python3-pyqt5.qtwebkit
and now I get
$ python3 camera_caps.py
/home/bryan/camera-caps/camera_caps_controller.py:416: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if frame_rate is not "" and frame_rate in fps:
_IceTransSocketUNIXConnect: Cannot connect to non-local host ubuntu
_IceTransSocketUNIXConnect: Cannot connect to non-local host ubuntu
Qt: Session management error: Could not open network socket
Unable to detect what device /dev/media0 is, exiting.
Command '['v4l2-ctl', '-d', '/dev/media0', '--list-ctrls-menus']' returned non-zero exit status 1.
Unable to detect what device /dev/media1 is, exiting.
Command '['v4l2-ctl', '-d', '/dev/media1', '--list-ctrls-menus']' returned non-zero exit status 1.
Unable to detect what device /dev/media0 is, exiting.
Unable to get device info: Command '['v4l2-ctl', '--info', '-d', '/dev/media0']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/bryan/camera-caps/camera_caps.py", line 223, in <module>
main()
File "/home/bryan/camera-caps/camera_caps.py", line 209, in main
controller = Camera_Caps_Controller(window)
File "/home/bryan/camera-caps/camera_caps_controller.py", line 39, in __init__
self.camera_list = self.camera_inspector.list_cameras()
File "/home/bryan/camera-caps/camera_caps_model.py", line 130, in list_cameras
self.get_camera_info(camera)
File "/home/bryan/camera-caps/camera_caps_model.py", line 150, in get_camera_info
for line in camera_info.splitlines():
UnboundLocalError: local variable 'camera_info' referenced before assignment
I see my Logitech Webcam no problem and can get its info:
v4l2-ctl --list-devices
NVIDIA Tegra Video Input Device (platform:tegra-camrtc-ca):
/dev/media0
Logitech Webcam C930e (usb-3610000.usb-4.1):
/dev/video0
/dev/video1
/dev/media1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.