Giter Site home page Giter Site logo

darknet_ros's Introduction

#Darknet# Darknet is an open source neural network framework written in C and CUDA. It is fast, easy to install, and supports CPU and GPU computation.

For more information see the Darknet project website.

For questions or issues please use the Google Group.

#Darknet ROS# This version of darknet provides an ROS interface for running the YOLO detection as an ROS node. The default config uses the pascal VOC detection weights but this interface can be used with any custom weights.

ROS_interface.cpp replaces the darknet.c executable and acts as the ROS entry point. It includes a subscriber to a /usb_cam image topic and a function that sends that image to the YOLO source code. yolo_kernels.cu has been modified to receive images from ROS_interface.cpp rather than from CvVideoCapture.

To use: Modify ROS_interface.cpp with the correct path to your yolo-tiny.weights and change the /usb_cam/image_raw topic to your camera topic. Compile normally with catkin_make and run with "rosrun darknet_ros ROS_interface".

NEW: YOLO_object_detector.cpp gives you full control of the output of YOLO. This ROS node extracts the bounding box coordinates from the YOLO source code and annotates the images itself. It publishes two topics: /found_object displays "1" or "0" corresponding to whether or not an object has been detected, and /YOLO_bboxes displays the class label that was detected followed by the bbox coordinates [xmin, ymin, xmax, ymax].

To use: Modify YOLO_object_detector.cpp with the correct path to your yolo-tiny.weights and yolo-tiny.cfg file, change the /usb_cam/image_raw topic to your camera topic, and change the class_labels[] array with your desired labels. Run with "rosrun darknet_ros yolo_object_detector".

darknet_ros's People

Watchers

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

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.