# driving **Repository Path**: leonard_robot/driving ## Basic Information - **Project Name**: driving - **Description**: 潜水AI增强 - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-12 - **Last Updated**: 2024-08-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # driving ## 介绍 潜水AI增强 ## 软件架构 软件架构说明 password: yahboom 验证码: lguu ip: 192.168.88.92 ## [摄像头](https://www.yahboom.com/build.html?id=6463&cid=590) ### USB摄像头 - 测试 ### USB摄像头 ~~~bash ls /dev/video* /dev/video0 /dev/video1 # video0 开发板自带CSI摄像头 # video1 是USB摄像头 # 使用应用策划给你需:camorama sudo apt-get install camorama # 使用应用策划给你需:cheese sudo apt-get install cheese # 也可以(YAHBOOM版的镜像) cd /home/jetson/GPIO_test python3 test_camera_usb.py #默认打开/dev/video0 # 安装 v4l-utils sudo apt-get install v4l-utils # 查看设备 v4l2-ctl --list-devices # 查看各相机支持的分辨率、帧率、像素格式等参数 v4l2-ctl -d /dev/video0 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'MJPG' (Motion-JPEG, compressed) Size: Discrete 1280x720 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 960x540 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 848x480 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 640x480 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 640x360 Interval: Discrete 0.033s (30.000 fps) [1]: 'YUYV' (YUYV 4:2:2) Size: Discrete 640x480 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 160x120 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 320x180 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 320x240 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 424x240 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 640x360 Interval: Discrete 0.033s (30.000 fps) ~~~ ~~~bash $ sudo apt-get install v4l-utils $ v4l2-ctl --device=/dev/video0 --list-formats-ext jetson@unbutu:~$ v4l2-ctl --device=/dev/video0 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'MJPG' (Motion-JPEG, compressed) Size: Discrete 1920x1080 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 1280x720 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 800x600 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 640x480 Interval: Discrete 0.033s (30.000 fps) [1]: 'YUYV' (YUYV 4:2:2) Size: Discrete 1920x1080 Interval: Discrete 0.200s (5.000 fps) Size: Discrete 1280x720 Interval: Discrete 0.100s (10.000 fps) Size: Discrete 800x600 Interval: Discrete 0.067s (15.000 fps) Size: Discrete 640x480 Interval: Discrete 0.033s (30.000 fps) ~~~ ## 安装教程 ### 环境依赖 #### [ubuntu20.04 x86_64](https://blog.csdn.net/weixin_43422012/article/details/130556422) - cuda - jetson utils ~~~bash git clone https://github.com/dusty-nv/jetson-utils mkdir build cd build cmake ../ # output: CUDA_TOOLKIT_ROOT_DIR not found or specified # ~~~ - OpenCV ## 使用说明 1. xxxx 2. xxxx