# Yolo Object Detection and Distance Measurement with Zed camera
you can test object detection and distance measurement with zed camera
### How to use
You need to run this script like that `python zed.py `
or if you use tensorRT yolo, You need to run this script like that `python zed_trt.py `
You need to edit the codes in `zed.py` line according to yourself.
specify the yolo weights and config files you trained before.
~~~~~~~~~~~~
45. weightsPath = "yolov4-obj_last.weights"
46. configPath = "yolov4-obj.cfg"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
then you need to edit the following lines in `zed.py`
Size should be changed according to your config file
~~~~~~
56. model.setInputParams(size=(608, 608), scale=1/255, swapRB=True)
~~~~~~~~~~~~~~~~~~~~
Edit them according to your class labels.
~~~~~~~~~~~~
68. LABELS = [ 'class_name1',
'class_name2',
'class_name3',
'class_name3',
.
.
.
]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
that's all, if you have a zed camera you can easily find the distance of the objects you have detected
## You can see how the program works in the gif below.
![into gif](https://github.com/MehmetOKUYAR/Zed_Yolo_distance_measurement/blob/master/intro.gif)
没有合适的资源?快使用搜索试试~ 我知道了~
zed +yolo进行双目测距 运行代码是zedceju.py
共42个文件
py:20个
xml:5个
cfg:2个
5星 · 超过95%的资源 需积分: 39 34 下载量 63 浏览量
2022-08-12
10:21:26
上传
评论 14
收藏 78.97MB ZIP 举报
温馨提示
使用zed摄像头 和yolo进行测距,需要你从官网上下载zed sdk然后进行配置,配置过程可能由于numpy版本问题导致不可以调用import pyzed.sl as sl
资源详情
资源评论
资源推荐
收起资源包目录
zedceju.zip (42个子文件)
Yolo-Object-Detection-and-Distance-Measurement-with-Zed-camera-master
yolov4.cfg 3KB
zed.py 6KB
data
camera
video
plugins
gpu_cc.py 1KB
yolo_layer.o 108KB
yolo_layer.cu 16KB
yolo_layer.h 5KB
Makefile 1KB
README.md 263B
biaoding.py 8KB
zed_trt.py 6KB
yolov4.weights 22.44MB
LICENSE 1KB
yolov4-tiny.cfg 3KB
.idea
misc.xml 201B
modules.xml 397B
Yolo-Object-Detection-and-Distance-Measurement-with-Zed-camera-master.iml 498B
workspace.xml 8KB
.gitignore 50B
inspectionProfiles
Project_Default.xml 1KB
profiles_settings.xml 174B
size.py 509B
zedceju.py 6KB
.gitignore 1KB
README.md 1KB
yolov4-tiny.weights 23.13MB
utils
modnet.py 6KB
ssd_classes.py 2KB
display.py 2KB
camera.py 10KB
ssd.py 4KB
yolo_with_plugins.py 12KB
ssd_tf.py 2KB
__init__.py 0B
mjpeg.py 3KB
yolo_classes.py 2KB
visualization.py 3KB
writer.py 942B
background.py 2KB
mtcnn.py 17KB
intro.gif 15.78MB
.gitattributes 66B
yolov4-tiny.txt 22.44MB
共 42 条
- 1
Hui_chen*
- 粉丝: 4
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Surfer,线性函数
- MyBatis 的动态 SQL 是其核心特性之一.txt
- 时代的sdddsddsddsd
- 基于哈希链表的简单人员信息管理系统
- 其他类别JdonFramework开源框架 v5.1 Build20071025-jdonframework-5.1.rar
- 2001~2022年上市公司数字赋能指数.dta
- 2001~2022年上市公司数字赋能指数.xlsx
- 信息办公石大在线财务管理系统(含源码)-shidacaiwu.rar
- 信息办公电信计费系统完整代码-netctossconformity.rar
- matlab实现TD-SCDMA中初始同步捕捉DwPTS下行同步导频时隙的仿真.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2