Giter Club home page Giter Club logo

dsst_tracking's Introduction

Python Warp for DSST tracking

Build

mkdir build
cd build
cmake ..

Testing

test dsst

python test.py

detail in test.py

import sys
import cv2
sys.path.append("build")
import DSST

# set dsst padding
padding = 2.5

# set tracker
dsst = DSST.Tracker()
dsst.setParam(padding)

# set video
vid = cv2.VideoCapture("../test.avi")
...

Detail

For other params, please refer to the funciton setParam in file main_dsst.cpp, and change it as your wish. Currnt parameter setting:

cf_tracking::DsstParameters tracker;
//! set Paras for cf_tracking
// use original paper parameters from
// Danelljan, Martin, et al., "Accurate scale estimation for robust visual tracking," in Proc. BMVC, 2014
{

    tracker.padding = static_cast<double>(padding);
    tracker.outputSigmaFactor = static_cast<double>(1.0 / 16.0);
    tracker.lambda = static_cast<double>(0.01);
    tracker.learningRate = static_cast<double>(0.025);
    tracker.templateSize = 100;
    tracker.cellSize = 1;

    tracker.enableTrackingLossDetection = false;
    tracker.psrThreshold = 0;
    tracker.psrPeakDel = 1;

    tracker.enableScaleEstimator = true;
    tracker.scaleSigmaFactor = static_cast<double>(0.25);
    tracker.scaleStep = static_cast<double>(1.02);
    tracker.scaleCellSize = 4;
    tracker.numberOfScales = 33;

    tracker.originalVersion = true;
    tracker.resizeType = cv::INTER_AREA;
    _tracker = new cf_tracking::DsstTracker(tracker);
}

//! set Paras for data play
{
    param.sequencePath = "/home/i/code_base/ACC_CAR/dsst_tracking/test.avi";
    _paras = param;
}

dsst_tracking's People

Contributors

dr-lingyunxu avatar prof-pengyin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

waveyan lc790

dsst_tracking's Issues

Module not found

Getting error while running the code:

File "test.py", line 138, in
import DSST
ModuleNotFoundError: No module named 'DSST'

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.