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类别对应表

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.