Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.6%) to scientific vocabulary
Last synced: 9 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: kirkfreire
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 71.3 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

yolov8_ros

ROS 2 wrap for Ultralytics YOLOv8 to perform object detection and tracking, instance segmentation and human pose estimation. There are also 3D versions of object detection and human pose estimation based on depth images.

Installation

shell $ cd ~/ros2_ws/src $ git clone https://github.com/mgonzs13/yolov8_ros.git $ pip3 install -r yolov8_ros/requirements.txt $ cd ~/ros2_ws $ rosdep install --from-paths src --ignore-src -r -y $ colcon build

Usage

YOLOv8

shell $ ros2 launch yolov8_bringup yolov8.launch.py

Parameters

  • model: YOLOv8 model (default: yolov8m.pt)
  • tracker: tracker file (default: bytetrack.yaml)
  • device: GPU/CUDA (default: cuda:0)
  • enable: wether to start YOLOv8 enabled (default: True)
  • threshold: detection threshold (default: 0.5)
  • inputimagetopic: camera topic of RGB images (default: /camera/rgb/image_raw)

YOLOv8 3D

shell $ ros2 launch yolov8_bringup yolov8_3d.launch.py

Parameters

  • model: YOLOv8 model (default: yolov8m.pt)
  • tracker: tracker file (default: bytetrack.yaml)
  • device: GPU/CUDA (default: cuda:0)
  • enable: wether to start YOLOv8 enabled (default: True)
  • threshold: detection threshold (default: 0.5)
  • inputimagetopic: camera topic of RGB images (default: /camera/rgb/image_raw)
  • inputdepthtopic: camera topic of depth images (default: /camera/depth/image_raw)
  • inputdepthinfo_topic: camera topic for info data (default: /camera/depth/camera_info)
  • depthimageunits_divisor: divisor to convert the depth image into metres (default: 1000)
  • target_frame: frame to transform the 3D boxes (default: base_link)
  • maximumdetectionthreshold: maximum detection threshold in the z axis (default: 0.3)

Demos

Object Detection

This is the standard behavior of YOLOv8, which includes object tracking.

shell $ ros2 launch yolov8_bringup yolov8.launch.py

Instance Segmentation

Instance masks are the borders of the detected objects, not the all the pixels inside the masks.

shell $ ros2 launch yolov8_bringup yolov8.launch.py model:=yolov8m-seg.pt

Human Pose

Online persons are detected along with their keypoints.

shell $ ros2 launch yolov8_bringup yolov8.launch.py model:=yolov8m-pose.pt

3D Object Detection

The 3D bounding boxes are calculated filtering the depth image data from an RGB-D camera using the 2D bounding box. Only objects with a 3D bounding box are visualized in the 2D image.

shell $ ros2 launch yolov8_bringup yolov8_3d.launch.py

3D Object Detection (Using Instance Segmentation Masks)

In this, the depth image data is filtered using the max and min values obtained from the instance masks. Only objects with a 3D bounding box are visualized in the 2D image.

shell $ ros2 launch yolov8_bringup yolov8_3d.launch.py model:=yolov8m-seg.pt

3D Human Pose

Each keypoint is projected in the depth image and visualized using purple spheres. Only objects with a 3D bounding box are visualized in the 2D image.

shell $ ros2 launch yolov8_bringup yolov8_3d.launch.py model:=yolov8m-pose.pt

Owner

  • Login: kirkfreire
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: "González-Santamarta"
    given-names: "Miguel Á."
title: "yolov8_ros"
date-released: 2023-02-21
url: "https://github.com/mgonzs13/yolov8_ros"

GitHub Events

Total
Last Year

Dependencies

.github/workflows/codacy.yml actions
  • actions/checkout v3 composite
  • codacy/codacy-analysis-cli-action d840f886c4bd4edc059706d09c6a1586111c540b composite
  • github/codeql-action/upload-sarif v2 composite
.github/workflows/codeql.yml actions
  • actions/checkout v3 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/autobuild v2 composite
  • github/codeql-action/init v2 composite
.github/workflows/devskim.yml actions
  • actions/checkout v3 composite
  • github/codeql-action/upload-sarif v2 composite
  • microsoft/DevSkim-Action v1 composite
requirements.txt pypi
  • opencv-python ==4.8.1.78
  • ultralytics ==8.0.202
yolov8_ros/setup.py pypi
  • setuptools *