zoukankan      html  css  js  c++  java
  • 程序文件TLD如何运行OpenTLD(TLD_HY20121127)

    这几周笔者几篇文章介绍了改程序文件的文章. 关联文章的地址

        前一段时间,由于自己对程序的参数输入不是很懂得,遇到一些问题。明天发现在http://write.blog.csdn.net/postedit,源码的网站上有相干的doc文件和如何运行的文件,拿过来分享一下。自己跑得程序是TLD群中共享的TLD_HY-2012-11-27的程序。

        这是网站上的rendme 文件。

    This will be a C++ implementations of the OpenTLD (aka Predator)
    ----------------------------------------------------------------------------
    This is a work in progress, as of right now the code is functional but pretty slow.
    ----------------------------------------------------------------------------
    Installation Notes
    =====================================
    git clone git@github.com:alantrrs/OpenTLD.git
    cd OpenTLD
    mkdir build
    cd build
    cmake ../src/
    make
    cd ../bin/
    %To run from camera
    ./run_tld -p ../parameters.yml -tl
    %To run from file
    ./run_tld -p ../parameters.yml -s ../datasets/06_car/car.mpg -tl
    %To init bounding box from file
    ./run_tld -p ../parameters.yml -s ../datasets/06_car/car.mpg -b ../datasets/06_car/init.txt -tl
    %To train only in the firs frame (no tracking, no learning)
    ./run_tld -p ../parameters.yml -s ../datasets/06_car/car.mpg -b ../datasets/06_car/init.txt 
    %To test the final detector (Repeat the video, first time learns, second time detects)
    ./run_tld -p ../parameters.yml -s ../datasets/06_car/car.mpg -b ../datasets/06_car/init.txt -tl -r
    
    =====================================
    Evaluation
    =====================================
    The output of the program is a file called bounding_boxes.txt which contains all the detections made through the video. This file should be compared with the ground truth file to evaluate the performance of the algorithm. This is done using a python script:
    python ../datasets/evaluate_vis.py ../datasets/06_car/car.mpg bounding_boxes.txt ../datasets/06_car/gt.txt
    
    ====================================
    Thanks
    ====================================
    To Zdenek Kalal for realeasing his awesome algorithm
        每日一道理
    风,那么轻柔,带动着小树、小草一起翩翩起舞,当一阵清风飘来,如同母亲的手轻轻抚摸自己的脸庞,我喜欢那种感觉,带有丝丝凉意,让人心旷神怡。享受生活,不一定要有山珍海味、菱罗绸缎为伴,大自然便是上帝所赐予人类最为珍贵的。

        
    与程序里的read_optopons对应,注意自己对应的文件地址。如果跑相干的测试视频,在上面的网站的data文件夹有。

    void read_options(int argc, char** argv,VideoCapture& capture,FileStorage &fs){
      for (int i=0;i<argc;i++){
          if (strcmp(argv[i],"-b")==0){
              if (argc>i){
                  readBB(argv[i+1]);
                  gotBB = true;
              }
              else
                print_help(argv);
          }
          if (strcmp(argv[i],"-s")==0){
              if (argc>i){
                  video = string(argv[i+1]);
                  capture.open(video);
                  fromfile = true;
              }
              else
                print_help(argv);
    
          }
          if (strcmp(argv[i],"-p")==0){
              if (argc>i){
                  fs.open(argv[i+1], FileStorage::READ);
              }
              else
                print_help(argv);
          }
          if (strcmp(argv[i],"-no_tl")==0){
              tl = false;
          }
          if (strcmp(argv[i],"-r")==0){
              rep = true;
          }
      }
    }

        
     

    文章结束给大家分享下程序员的一些笑话语录: 女人篇
      有的女人就是Windows虽然很优秀,但是安全隐患太大。
      有的女人就是MFC她条件很好,然而不是谁都能玩的起。
      有的女人就是C#长的很漂亮,但是家务活不行。
      有的女人就是C++,她会默默的为你做很多的事情。
      有的女人就是汇编虽然很麻烦,但是有的时候还得求它。
      有的女人就是SQL,她会为你的发展带来莫大的帮助。

  • 相关阅读:
    SQL 操作结果集 -并集、差集、交集、结果集排序
    bootstrap的css和js
    pandas DataFrame数据转为list
    nodejs 不同请求获取前端传的参数
    微信小程序switch组件尺寸控制
    vue-cli项目部署到服务器
    element-ui table 底部滚动条问题
    简单配色
    浏览器滚动条自定义化
    element table固定表头,表的高度自适应解决方法
  • 原文地址:https://www.cnblogs.com/jiangu66/p/3074812.html
Copyright © 2011-2022 走看看