Giter Site home page Giter Site logo

maxibooksiyi / kcf_tracker_ros Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaofenglin7/kcf_tracker_ros

0.0 0.0 0.0 552 KB

Using kcf algorithm to track target under ROS environment.

License: MIT License

CMake 19.97% C 16.61% C++ 36.29% Makefile 27.13%

kcf_tracker_ros's Introduction

About The Project

This project is based on a small sample of [DJI Onboard SDK](dji-sdk/Onboard-SDK: DJI Onboard SDK Official Repository (github.com)), the original version of this sample is implemented under linux environment rather than ros. This project uses KCF algorithms to track image target with bounding boxes.

Getting Started

Prerequisites

  • Ros

You need to install ros first. Install instruction can be found at: http://wiki.ros.org/ROS/Installation. I just tested ROS kinetic version.

Installation

  1. create your workspace

    mkdir -p you_ws/src
    cd you_ws/src
  2. Clone the repo and complie

    git clone https://github.com/potBagMeat/kcf_tracker_ros.git
    cd ..
    catkin_make
  3. download camera package of ros.

    sudo apt-get install ros-kinetic-usb-cam

Usage

Change camera

If you want to try other camera rather than usb camera. You should change ros topic name in target_tracking.cpp.

Firstly,

rostopic list

Find your topic and copy your topic name.

In target_tracking.cpp

change

image_transport::Subscriber imageSubscriber = it.subscribe("/usb_cam/image_raw",10,imageCallBack);

to

image_transport::Subscriber imageSubscriber = it.subscribe("you_topic_name",10,imageCallBack);

and don't forget to catkin_make.

Basic use

In order to run this project.

  1. Run camera node.
roslaunch usb_cam usb_cam-test.launch
  1. Run KCF tracker.
rosrun kcf_target_tracker kcf_target_tracker

and you will see

My Camera_screenshot_17.01.2021

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Xiaofeng Lin - [email protected]

kcf_tracker_ros's People

Contributors

xiaofenglin7 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.