目标检测安装:GOTURN安装

1. Github

https://github.com/davheld/GOTURN

Introduction

GOTURN addresses the problem of single target tracking: given a bounding box label of an object in the first frame of the video, we track that object through the rest of the video.



2.Installation

  1. Install CMake:

    sudo apt-get install cmake

  2. Install TinyXML (needed to load Imagenet annotations):

    sudo apt-get install libtinyxml-dev

  3. clone GOTURN

    git clone --recursive https://github.com/davheld/GOTURN.git

  4. make 
    mkdir build 
    cd build 
    cmake .. 
    make

3. 遇到的问题

  1. 配置caffe路径 
    需要在 GOTURN/cmake/Modules目录下修改Caffe_DIR的值: 
    ###Set the variable Caffe_DIR as the root of your caffe directory 
    set(Caffe_DIR /home/dl/caffe)

  2. make编译时遇到以下编译错误: 
    fatal error: caffe/proto/caffe.pb.h:No such file or directory #include 'caffe/proto/caffe.pb.h' 
    解决: 
    切换到caffe根目录: 
    (1) proto src/caffe/proto/caffe.proto –cpp_out=. 
    【–cpp_out 指定生成c++的代码并放置在当前路径中 】 
    (2) mkdir include/caffe/proto 
    (3) mv src/caffe/proto/caffe.pb.h include/caffe/proto

4. Pretrained model

bash scripts/download_trained_model.sh

5. Tracking Performance

bash scripts/show_tracker_test.sh /home/dl/Downloads/vot2015 

这里写图片描述


猜你喜欢

转载自blog.csdn.net/wfei101/article/details/81428043