本项目使用usb相机测距
测距原理请参考:单目测距原理与实现(代码可运行)_冰软的博客-CSDN博客
本代码只对椅子和人进行了距离显示
针对其他可被yolo识别的物体都可以修改代码后显示
运行代码您可能需要安装ros以及ros带的usb_cam功能包
本项目还包括了d435i双目相机的测距,代码请见:GitHub - lxj-drifter/Binocular-ranging-yolov5: This project is modified based on yolov5_ros, but the lanuch file can be directly started during actual operation, and no topics will be published in ros