Ubuntu 12.04
nginx 1.2.4
avconv -version
avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
avconv 0.8.10-4:0.8.10-0ubuntu0.12.04.1
libavutil 51. 22. 2 / 51. 22. 2
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. …Run Code Online (Sandbox Code Playgroud) 我需要沿着一条线获取像素值,我正在使用Python3和Pillow。在opencv中,有一个LineIterator这样的东西,它将返回两点之间的所有适当像素,但是我在Pillow的文档中找不到类似的东西。
我之所以使用Pillow,是因为我最初看到这篇文章说python3不支持opencv,我知道这是从2012年开始的,但是我相信这是从今年开始的,这已经证实了这一点,因为有职位上没有年份。但是当我运行pip3.2 search opencv时,我可以看到pyopencv但无法安装它,它说它找不到合适的版本(可能是python2.x到python3.x问题)。
我的首选解决方案如下: