IDT Source Code Running Guide(Linux+ffmpeg-0.11.1+opencv-2.4.2)
来源 :仅作翻译使用
https://blog.csdn.net/sinat_27318881/article/details/52103896#commentBox
1. ffmpeg-0.11.1 Configuration
- delete the ffmpeg which had already install to avoid conflict
sudo apt-get remove ffmpeg x264
sudo apt- get autoremove
- 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 afterautomake
and use spaces to separate them. It can also be installed separately. - 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 withxxx not found
,it may lack of decoder, you can download x264 . Then enter the foldercd x264
, and use the command as follows
./configure --enable-static --enable-shared
If no error is reported, return the third compilation step - Install
make
make install
idconfig
- Test
Using the commandffmpeg
, 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
- Install necessary support
apt-get install pkg-config
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
apt-get install cmake
- 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
Finallymake
,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)相关推荐
- 線上 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/ ...
- CUDA C++ Programming Guide( v11.2.0)部分翻译+笔记
笔记对有些较为简单的部分做了省略,有些原文中表达比较拗口的地方,重新组织了话叙,由于部分内容并不是完全翻译,所以不建议作为主要学习资料,建议作为学习对比参考使用,如有不明白的地方或觉得有问题的地方,欢 ...
- Linux内核0.11学习
Linux内核0.11学习 文章目录 Linux内核0.11学习 一.计算机开机的过程 1.启动BIOS 2.BIOS 在内存中加载中断向量表和中断服务程序 Linux内核最新已经版本已经到5.18了 ...
- Linux 内核0.11 系统调用详解(下)
备注:上讲中,博猪讲到了操作系统是如何让用户程序调用系统函数的,这讲继续接上讲的话题,从一个系统内核系统函数创建的小实验来学习系统内核具体做了些什么.理清下系统调用的整体过程. 实验:在Linux 0 ...
- c补week1(linux c基本操作及C语言部分基础知识)
一.linux常见命令 清屏:ctrl+l 在终端输入clear 补全键:tab键 上下箭头:查找输入的历史命令 打开一个和当前路径相同的终端:ctrl+shift+n 1.ls显示当前目录 ls ...
- mysql高级知识(linux安装mysql+索引+视图+存储过程和函数+触发器)
一.linux系统安装Mysql 1.mysql安装包: MySQL :: Download MySQL Community Server 2.mysql安装 linux安装在vmware(虚拟机)上 ...
- 思维导图五(Linux、JVM、Redis、RabbitMQ、ElasticSearch)
本文是自己学习相关知识点时做的思维导图,主要为了帮助自己巩固知识点 其他框架思维导图: 思维导图一(HTML5.CSS3.JavaScript.Json.Ajax.Vue)_SKS121的博客-CSD ...
- C语言实现推箱子(从1.0到3.1版本详解)
讲到推箱子首先想到的就是地图绘制,主角.箱子.墙体边缘.目标点位等等一系列元素.所有这些在C中都可以用二维数组来实现,加以控制动作逻辑来辅助. 目录 1.0 2.0 2.1 2.2 3.0 3.1 源 ...
- linux启动过程(参考内核0.11)
当PC启动时,Intel系列的CPU首先进入的是实模式,并开始执行位于地址0xFFFF0处的代码,也就是ROM-BIOS起始位置的代码.BIOS先进行一系列的系统自检,然后初始化位于地址0的中断向量表 ...
最新文章
- [原创]Java性能优化权威指南读书思维导图
- Wireshark如何选择多行
- 【计算机网络】物理层 : 总结 ( 物理层特性 | 码元速率 | 通信方式 | 数据传输方式 | 信号类型 | 编码与调制 | 奈氏准则 | 香农定理 | 传输介质 | 物理层设备 ) ★★★
- 丑数 Humble Numbers
- android 设置点击ProgressDialog外的区域不消失
- 松下壁挂式新风系统推荐_松下壁挂式新风怎么样 松下壁挂式新风系统优势介绍【详解】...
- Proteus仿真单片机:PIC18单片机的仿真
- 二项分布的期望方差证明_关于二项分布
- django-模板过滤器
- 为啥月饼也能变成期货?
- EAST: An Efficient and Accurate Scene Text Detector
- 无废话C#设计模式系列文章
- JavaScript DOM(一)
- java 毫秒转分钟和秒_Java程序将毫秒转换为分钟和秒
- 办公技巧:分享100个Excel快捷键,值得收藏!
- 用python做网站的步骤_Python建网站的步骤
- dbt2 mysql_mysql压力测试工具-DBT2 Benchmark Tool下载0.37.50.14-西西软件下载
- Linux学习笔记——文件IO
- 我为什么选择Go语言(Golang)
- linux孤儿进程组深入理解,LInux下僵尸进程与孤儿进程是如何产生的?