VATIC视频标注工具(下载见文末


  • 安装(基于Ubuntu16.04)

$ sudo pip install cython==0.20

$ wget http://mit.edu/vondrick/vatic/vatic-install.sh

$ chmod +x vatic-install.sh

$ ./vatic-install.sh

$ cd vatic

vatic-install.sh可能下载不了,vatic-install下载地址:

https://download.csdn.net/download/gzq0723/10874644

  • 配置HTTP Server

/etc/apache2/sites-enabled/000-default.conf

替换为:


WSGIDaemonProcess www-data python-eggs=/home/cmcross/.python-eggs

WSGIProcessGroup www-data

<VirtualHost *:80>

ServerName 0.0.0.0

DocumentRoot /home/cmcross/vatic/public

WSGIScriptAlias /server /home/cmcross/vatic/server.py

CustomLog /var/log/apache2/access.log combined

</VirtualHost>


启用mod_headers模块:

$ sudo cp /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled

重启Apache:

$ sudo apache2ctl graceful

  • 配置SQL

创建vatic数据库:


$ mysql -u root

mysql> create database vatic;


如果登录需要密码,密码是hail_ukraine,修改root用户为无密码状态,否则会报错,如果是上面我的csdn下载的,密码是root

更新mysql root为无密码:


update user set authentication_string=PASSWORD("") where User='root';

update user set plugin="mysql_native_password";

flush privileges; #更新所有操作权限

quit;


启动:

$ cp config.py-example config.py

如果需要上线服务,修改access相应选项,离线服务可以跳过

初始化数据库:

$ turkic setup --database

重启数据库:

$ turkic setup --database --reset

允许vatic访问turkic:

$ turkic setup --public-symlink

  • 验证是否安装正确

$ turkic status --verify

如果您收到任何错误消息,则表示安装未完成。

注意:不打算使用Mechanical Turk,忽略由Mechanical Turk引起的任何错误。

ERROR:

Localhost: http://localhost/

Testing access to Amazon Mechanical Turk... ERROR! Signature or access key missing

Testing access to database server... OK

Testing access to web server... ERROR! HTTP Error 403: Forbidden

One or more tests FAILED!

解决:修改Apache配置/etc/apache2/apache2.conf添加


<Directory /home/cmcross/vatic/public>

Options Indexes FollowSymLinks

AllowOverride All

Require all granted

</Directory>


重启后解决问题$ sudo apache2ctl graceful

  • 示例

1、视频取帧

$ mkdir /path/to/output/directory

$ turkic extract /path/to/video.mp4 /path/to/output/directory

宽高属性采用:--width 1000 --height 1000或者--no-resize

$ turkic extract /path/to/video.mp4 /path/to/output/directory --width 1000 --height 1000

已经取好的视频帧可通过命令转化为vatic的格式

$ turkic formatframes /path/to/frames/ /path/to/output/directory

2、导入视频(离线)

$ turkic load identifier /path/to/output/directory Label1 ~Attr1A ~Attr1B

Label2 ~Attr2A ~Attr2B ~Attr2C Label3 --offline

identifier为表示符,Label1将具有属性Attr1A和Attr1B,Label2将具有属性Attr2B,Attr2B和Attr2C,并且Label3将不具有属性。 指定属性是可选的。

3、pulish视频(离线)

$ turkic publish --offline

ERROR:publish后打开http://localhost?id=1&hitId=offline网址显示Server Error

解决方法:在/etc/apache2/sites-enabled/000-default.conf添加


<Directory /path/to/vatic>

<Files server.py>

Require all granted

</Files>

</Directory>


4、导出voc格式数据集

$ turkic dump identifier -o /output --pascal --pascal-skip 1

–pascal-skip:多少帧取一次数据,不加这个属性默认为15帧取一次

出现的error

  • error1

root@mou:~# mysql -u root

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

注意:进入root模式

解决方法:

root@mou:~# mysql -u root -p

Enter password: root

显示如下:

  • error2

/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py:1298: UserWarning: /home/suker/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).

warnings.warn(msg, UserWarning)

解决办法

$ cd /home/mou/

$ chmod g-wx,o-wx .python-eggs/

还不行的话:

$ sudo usermod -a -G mou www-data

$ sudo mkdir /var/www/.python-eggs/

$ sudo chown www-data:www-data /var/www/.python-eggs/

$ sudo apache2ctl graceful

注意:

.python-eggs是隐藏文件,‘ctrl+H'可以查看,在按一次隐藏。我的.python-eggs里面没有东西,我删除了homex下的三个文件夹pyvision/turkic/vatic重装一遍。

'mou'是你的主机名。

  • error3

实现例子:

$ wget http://techslides.com/demos/sample-videos/small.mp4 -O /home/mou/vagrant_data/small.mp4

$ turkic extract /home/mou/vagrant_data/small.mp4 /home/mou/vagrant_data/example/

$ turkic load example_id /home/mou/vagrant_data/example/ example_label1 example_label2 example_label3 –offline

打开网址,进行标注,instructions有说明。但是load时出现问题:这是建立过程有问题。

参考:https://github.com/cvondrick/vatic/issues/56

$ turkic setup –database –reset //重新重启数据库

$ mkdir -p /home/mou/vagrant_data/example

$ wget http://techslides.com/demos/sample-videos/small.mp4 -O /home/mou/vagrant_data/small.mp4

(这2,3行你之前执行了的话就不要执行了)

$ turkic extract /home/mou/vagrant_data/video.mp4 /home/mou/vagrant_data/example

$turkic load identifier /home/mou/vagrant_data/output example_label1 example_label2 example_label3 –offline

$ turkic publish –offline

$ turkic dump identifier -o /home/mou/vagrant_data/output --pascal --pascal-skip 1

(注意Permission denied时,要加sudo)

example_label1表示你的第一个标签,以此类推,具体还可以加属性,参见官网。

Github下载地址:https://github.com/GZQ0723/vatic_BasicFinder-HIVE


如果想加入我们“计算机视觉战队”,请扫二维码加入学习群,我们一起学习进步,探索领域中更深奥更有趣的知识!

超级!超级!超级好用的视频标注工具相关推荐

  1. vatic—视频标注工具安装出现error及注意事项

    1.安装参考:(主要看的CSDN博客) 博客 https://blog.csdn.net/baidu_26788951/article/details/80053760 官网 Github:https ...

  2. OpenCV开发团队开源计算机视觉标注工具CVAT

    OpenCV开发团队开源计算机视觉标注工具Computer Vision Annotation Tool (CVAT) 同时支持图像和视频的标注,最大特点是专业!专业团队做的专业水准的工具! (关注& ...

  3. vatic标注工具安装步骤(非docker安装)以及错误解决办法

    Vatic标注工具安装步骤(非docker安装)以及错误解决 1.安装参考 2.安装步骤 2.1.环境介绍 2.2.下载Vatic 2.3.配置Apache 2.4.配置MySQL 2.5.配置/安装 ...

  4. 目标检测和图像分割常用的标注工具

    1 LabelImg LabelImg 是一款开源的图像标注工具,标签可用于分类和目标检测,它是用 Python 编写的,并使用Qt作为其图形界面,简单好用.注释以 PASCAL VOC 格式保存为 ...

  5. 深度学习数据集标注工具、图像语料数据库等资源

    NLP+VS︱深度学习数据集标注工具.图像语料数据库.实验室搜索ing... 2017年02月07日 12:12:01 阅读数:27032 ~~因为不太会使用opencv.matlab工具,所以在找一 ...

  6. 深度学习(DL) /人工智能(AI)数据集标注工具、图像语料数据库

    一.NLP标注工具BRAT BRAT是一个基于web的文本标注工具,主要用于对文本的结构化标注,用BRAT生成的标注结果能够把无结构化的原始文本结构化,供计算机处理.利用该工具可以方便的获得各项NLP ...

  7. NLP+VS︱深度学习数据集标注工具、图像语料数据库、实验室搜索ing..

    一.NLP标注工具 来源:<构想:中文文本标注工具(附开源文本标注工具列表)> Chinese-Annotator   来源:https://github.com/crownpku/Chi ...

  8. NLP+VS︱深度学习数据集标注工具、图像语料数据库、实验室搜索ing....

    from: https://blog.csdn.net/sinat_26917383/article/details/54908389 一.NLP标注工具 来源:<构想:中文文本标注工具(附开源 ...

  9. 【图像标注】NLP+VS︱深度学习数据集标注工具、图像语料数据库、实验室搜索ing

    因为不太会使用opencv.matlab工具,所以在找一些比较简单的工具.  .  . 一.NLP标注工具BRAT BRAT是一个基于web的文本标注工具,主要用于对文本的结构化标注,用BRAT生成的 ...

最新文章

  1. vconsole插件_手机前端开发调试利器 – vConsole
  2. linus下centos7防火墙设置
  3. webstrom打开多个项目,webstrom常用快捷键
  4. 题库明细 C#语言和SQL Server
  5. CV+NLP,使用tf.Keras构建图像搜索引擎
  6. 3_python基础—运算符 1
  7. mysql 报错1005_MysqlERROR 1005错误处理
  8. fiddler怎么过滤_Fiddler导出JMeter脚本插件详解
  9. Codevs 2800 送外卖(状压DP)
  10. STM32f4日记9之LD3320语音识别(您的私人语音助手MICRO)
  11. 2017国庆假期学习总结
  12. 前端H5各种qq,微博,fb,whatsapp等网页分享的链接
  13. ㉓AW-H3 Linux驱动开发之mipi camera(CSI)驱动程序
  14. mysql连接中文_MYSQL远程连接查询中文乱码
  15. 做网站用空间好还是服务器好,做网站如何选择正确的空间服务器
  16. mysql_store_result和mysql_use_result的区别
  17. python电子病历交接班系统_亚马逊电子病历上的Pydoop
  18. GPU地址空间的相关概念
  19. 简洁易用的记账小程序——微点记账
  20. mac下如何打出顿号

热门文章

  1. 对象、对象的属性、对象字面量、枚举对象中的属性、可变类型、变量和对象——JS对象
  2. 测试中常用的正则表达式你知道哪些?
  3. Welcome To ZOE's Blog
  4. 旅行+社交APP功能需求分析
  5. 你想玩物联网开发板吗?和我一起学习啊
  6. 德国留学语言c1,德国留学 纯语言签证和语言加留学签的区别介绍
  7. bash: ./deviceQuery.cpp: 权限不够;bash: ./deviceQuery: 没有那个文件或目录
  8. carplay是否可以用安卓系统_苹果CarPlay系统是什么?安卓系统手机能用吗?
  9. 关系模式判断候候选关键字 与 函数依赖无损连接
  10. Python:folium地图标记icon分组展示