Git Product home page Git Product logo

yolov5_ros's Introduction

yolov5_ROS

this is and successfull ros package,which can run YOLOv5 in ROS

(只要你有一个能跑yolov5的python环境,那么就可以在ros里面跑yolov5!,和ros版本无关!,和ubuntu系统无关)

1:requirements

①an conda env called yolo,in which you can run yolov5 dependently

②any ROS,any Ubuntu

③basic usb_cam ROS_driver (ros自带)

④yolov5s.pth or else (if you dont't have it,it will automatically donwload to your system)

⑤pip install rospy (安装ros与python的接口,这就是为什么无关的原因)

2:before run

1:copy this package(ros_yolo) to your catkin_ws/src  
2:catkin_make  
3:in final_yolo.py, you need to change the image_topic to your own camera input topic  

3:command to run

1:roscore
2:rosrun usb_cam usb_cam_node                       #启动ros自带的相机功能包 ros自带
3:conda activate yolo                               #进入你的conda环境
4:rosrun ros_yolo final_yolo.py  

4:results

yolo

5:修改要识别的类型

用的是final_yolo.py 文件来识别
修改93行:
classes = (0,1,2,3,5,7)

yolo类别对应表

yolov5_ros's People

Contributors

qianmin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

yolov5_ros's Issues

关于publish_image的问题

大佬您好!我发现您发布的message是图像,并不是bounding box,这样我想尝试做跟踪的话,貌似订阅不到您代码发布的message,大佬有什么想法?非常感谢!

更换自己的权重

您好!非常感谢您的代码,受益匪浅,我想用自己的权重试下,请问权重要放在哪?您说的coco.name我没找到。

rospkg缺失

roslib
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/init.py", line 50, in
from roslib.launcher import load_manifest # noqa: F401
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in
import rospkg
ModuleNotFoundError: No module named 'rospkg'

yolov7

你好,可以使 用yolov7吗?

】cd

的的

final_yolo.py第十四行代码报错该怎么解决

Traceback (most recent call last):
File "/home/new/catkin_ws/src/ros_yolo/scripts/final_yolo.py", line 14, in
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
ValueError: list.remove(x): x not in list

关于识别的问题

请问识别是只能识别出person吗 ,还是说我在配置过程中搞错了一些问题。。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.