# 双目视觉测距 **Repository Path**: tf_dog/binocular ## Basic Information - **Project Name**: 双目视觉测距 - **Description**: 双目视觉测距 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-09 - **Last Updated**: 2025-02-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 双目视觉测距 #### 介绍 双目视觉测距,参考代码:[龚博隆/binocular_distance_measurement ](https://gitee.com/huitiaowudeluobo/binocular_distance_measurement) 前提:内外参已标定。此处只是进行双目测距的代码。内外参标定代码见[双目视觉标定](https://gitee.com/tf_dog/stereo_calibration) #### 代码说明 1、先执行blender\blender_2eyes.py生成模拟的双目相机图片,执行时命令行会输出文件保存路径。 2、再执行main完成检测任务 说明:python版本为3.10,代码中bpy库需要python 3.10支持 #### 安装教程 1. 两张图片均未正确读取(图片路径错误) 报错提示: 【1】: can't open/read file: check file path/integrity 【2】cv2.error: OpenCV(4.10.0) D:\a\opencv-python\xxx\median_blur.dispatch.cpp:283: error: (-215:Assertion failed) !_src0.empty() in function 'cv::medianBlur' 5. 只读取了一张图片信息(图片路径错误) 报错提示: 【1】: can't open/read file: check file path/integrity 【2】cv2.error: OpenCV(4.10.0) D:\a\opencv-python\xxx\stereosgbm.cpp:2211: error: (-215:Assertion failed) xxx in function 'cv::StereoSGBMImpl::compute' 7. xxxx #### 报错说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)