14
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cloud9にOpenCVをインストールしてPythonで実行する方法

Last updated at Posted at 2016-02-02

#Cloud9にOpenCVをインストール

下記を参考にしました。

Raspberry Pi B+にOpenCV-Python環境を構築する

$ sudo apt-get install libopencv-dev
$ sudo apt-get install python-opencv

#いざ実行すると、errorが発生

$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
libdc1394 error: Failed to initialize libdc1394

#とりあえずエラー内容でググった

すると・・・。

python 2.7 - OpenCV: libdc1394 error: Failed to initialize libdc1394 - Stack Overflow

sudo ln /dev/null /dev/raw1394

というように/dev/nullにリンクを貼るといいみたいです。

$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'2.4.8'

IEEE1394すなわちFirewireとかのハードウェア用のドライバーが生きちゃっているって意味なのかも?

14
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?