来源 :仅作翻译使用

https://blog.csdn.net/sinat_27318881/article/details/52103896#commentBox

1. ffmpeg-0.11.1 Configuration

Due to opencv needs ffmpeg to decode video data, so we should install ffmepg first. If you have already installed opencv , i suggest to uninstall the opencv .
ffmpeg and opencv download address : http://lear.inrialpes.fr/people/wang/improved_trajectories
Then decompress to the directory ffmpeg-0.11.1.
Open the terminal input the command as follows:

  1. delete the ffmpeg which had already install to avoid conflict
    sudo apt-get remove ffmpeg x264
    sudo apt- get autoremove
  2. Install necessary support
    sudo apt-get install make automake g++ bzip2 python unzip patch subversion ruby build-essential git-core checkinstall yasm texi2html libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvdpau-dev libvorbis-dev libvpx-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev
    In the above command, we install multiple necessary support which are after automake and use spaces to separate them. It can also be installed separately.
  3. Compile in folder ffmpeg-0.1.11.1
    ./configure --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libvpx
    Success is indicated by the following figure

    if there is a problem with xxx not found ,it may lack of decoder, you can download x264 . Then enter the folder cd x264, and use the command as follows
    ./configure --enable-static --enable-shared
    If no error is reported, return the third compilation step
  4. Install
    make
    make install
    idconfig
  5. Test
    Using the command ffmpeg, If an error is reported, it may conflict with gstreamer’s dynamic library. Unload gstreamer. But if you uninstall gstreamer’s multimedia software, it will not work. So you can uninstall ffmpeg and recompile it into a static library. In the third step, enable-shared is replaced by enable-static.(Static libraries are not recommended.)
    If there are still errors, try adding - prefix=/usr/local/ffmpeg after. / configure in step 3

2. OpenCV-2.4.2 Configuration

  1. Install necessary support
    apt-get install pkg-config
    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
    apt-get install cmake
  2. Install openCV
    Download and unzip to the opencv2.4.2 folder
    mkdir release
    cd release
    cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON
    Success is indicated by the following figure

    Finally make , make install idconfig

3. Setting environment variables

sudo vim /etc/ld.so.conf.d/opencv.conf
add /usr/local/lib at the end。(Here you use VIM editing commands, you should know the basic VIM commands)
Finally idconfig

4. IDT Source Running

Download : http://lear.inrialpes.fr/people/wang/improved_trajectories
Enter folder input after decompression and use make , You can see the release folder, where Video and DenseTrackStab are executable files, and then enter: ./release/DenseTrackStab ./test_sequences/person01_boxing_d1_uncomp.avi
You can see a string of numbers flashing through the terminal, if you first modify the DenseTrackStab. CPP Change 0 to 1 for better visualization int show_track = 0;
To output features, enter: ./release/DenseTrackTrack ./test_sequences/person01_boxing_d1_uncomp.avi | gzip > out.features.gz
The source code supports the following parameter modifications

Here’s the structure of feature:
The feature is that each of the calculations is a separate column, given in the following format:

frameNum mean_x mean_y var_x var_y length scale x_pos y_pos t_pos Trajectory HOG HOF MBHx MBHy

The first ten parts are about trajectories:

The following five parts are connected one by one:

IDT Source Code Running Guide(Linux+ffmpeg-0.11.1+opencv-2.4.2)相关推荐

  1. 線上 Android/Linux Kernel Source Code瀏覽 - Android/Linux Source Code Cross Reference

    線上 Android/Linux Kernel Source Code瀏覽 - Android/Linux Source Code Cross Reference http://hala01.com/ ...

  2. CUDA C++ Programming Guide( v11.2.0)部分翻译+笔记

    笔记对有些较为简单的部分做了省略,有些原文中表达比较拗口的地方,重新组织了话叙,由于部分内容并不是完全翻译,所以不建议作为主要学习资料,建议作为学习对比参考使用,如有不明白的地方或觉得有问题的地方,欢 ...

  3. Linux内核0.11学习

    Linux内核0.11学习 文章目录 Linux内核0.11学习 一.计算机开机的过程 1.启动BIOS 2.BIOS 在内存中加载中断向量表和中断服务程序 Linux内核最新已经版本已经到5.18了 ...

  4. Linux 内核0.11 系统调用详解(下)

    备注:上讲中,博猪讲到了操作系统是如何让用户程序调用系统函数的,这讲继续接上讲的话题,从一个系统内核系统函数创建的小实验来学习系统内核具体做了些什么.理清下系统调用的整体过程. 实验:在Linux 0 ...

  5. c补week1(linux c基本操作及C语言部分基础知识)

    一.linux常见命令 清屏:ctrl+l 在终端输入clear 补全键:tab键 上下箭头:查找输入的历史命令 打开一个和当前路径相同的终端:ctrl+shift+n 1.ls显示当前目录 ls   ...

  6. mysql高级知识(linux安装mysql+索引+视图+存储过程和函数+触发器)

    一.linux系统安装Mysql 1.mysql安装包: MySQL :: Download MySQL Community Server 2.mysql安装 linux安装在vmware(虚拟机)上 ...

  7. 思维导图五(Linux、JVM、Redis、RabbitMQ、ElasticSearch)

    本文是自己学习相关知识点时做的思维导图,主要为了帮助自己巩固知识点 其他框架思维导图: 思维导图一(HTML5.CSS3.JavaScript.Json.Ajax.Vue)_SKS121的博客-CSD ...

  8. C语言实现推箱子(从1.0到3.1版本详解)

    讲到推箱子首先想到的就是地图绘制,主角.箱子.墙体边缘.目标点位等等一系列元素.所有这些在C中都可以用二维数组来实现,加以控制动作逻辑来辅助. 目录 1.0 2.0 2.1 2.2 3.0 3.1 源 ...

  9. linux启动过程(参考内核0.11)

    当PC启动时,Intel系列的CPU首先进入的是实模式,并开始执行位于地址0xFFFF0处的代码,也就是ROM-BIOS起始位置的代码.BIOS先进行一系列的系统自检,然后初始化位于地址0的中断向量表 ...

最新文章

  1. [原创]Java性能优化权威指南读书思维导图
  2. Wireshark如何选择多行
  3. 【计算机网络】物理层 : 总结 ( 物理层特性 | 码元速率 | 通信方式 | 数据传输方式 | 信号类型 | 编码与调制 | 奈氏准则 | 香农定理 | 传输介质 | 物理层设备 ) ★★★
  4. 丑数 Humble Numbers
  5. android 设置点击ProgressDialog外的区域不消失
  6. 松下壁挂式新风系统推荐_松下壁挂式新风怎么样 松下壁挂式新风系统优势介绍【详解】...
  7. Proteus仿真单片机:PIC18单片机的仿真
  8. 二项分布的期望方差证明_关于二项分布
  9. django-模板过滤器
  10. 为啥月饼也能变成期货?
  11. EAST: An Efficient and Accurate Scene Text Detector
  12. 无废话C#设计模式系列文章
  13. JavaScript DOM(一)
  14. java 毫秒转分钟和秒_Java程序将毫秒转换为分钟和秒
  15. 办公技巧:分享100个Excel快捷键,值得收藏!
  16. 用python做网站的步骤_Python建网站的步骤
  17. dbt2 mysql_mysql压力测试工具-DBT2 Benchmark Tool下载0.37.50.14-西西软件下载
  18. Linux学习笔记——文件IO
  19. 我为什么选择Go语言(Golang)
  20. linux孤儿进程组深入理解,LInux下僵尸进程与孤儿进程是如何产生的?

热门文章

  1. 作为一个项目经理,这七个项目管理经验你掌握了吗?
  2. QQ浏览器X5内核问题汇总 转
  3. 华为交换机console密码相关
  4. 小船过河问题解析(过度解析)
  5. 微信小程序面向个人开放-附超详尽申请教程
  6. 阿里云域名购买和配置
  7. 汉画轩深度结合区块链技术 让国学真正活起来
  8. ArcGIS DEM数字高程模型数据的生成
  9. OpenCV学习笔记-傅里叶变换
  10. S7-200SMART案例分析——运动控制编程(三)