How to install OpenCV on Cloud9 and run it in Python

Install OpenCV on Cloud9

I referred to the following.

Building an OpenCV-Python environment on Raspberry Pi B +

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

When I execute it, an error occurs

$ 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

For the time being, I googled with the error content

Then ...

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

sudo ln /dev/null /dev/raw1394

It seems that you should put a link in / dev / null like this.

$ 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'

Does that mean that drivers for hardware such as IEEE1394, Firewire, are alive?

Recommended Posts

How to install OpenCV on Cloud9 and run it in Python
How to install Fast.ai on Alibaba Cloud GPU and run it on Jupyter notebook
How to install OpenCV on Jetson Nano Python
[Python] How to install OpenCV on Anaconda [Windows]
How to install OpenCV on Mac
How to install and use pandas_datareader [Python]
[Kivy] How to install Kivy on Windows [Python]
How to check opencv version in python
How to switch python versions in cloud9
How to use is and == in Python
How to install Python
How to install python
[2020 version] How to install Python3 on AWS EC2
How to generate permutations in Python and C ++
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
How to run MeCab on Ubuntu 18.04 LTS Python
How to run Leap Motion in non-Apple Python
How to install Cascade detector and how to use it
How to plot autocorrelation and partial autocorrelation in python
Install ROS and ROS module for Roomba on RaspberryPi3 and try to run it
[2020.8 latest] How to install Python
How to install Python [Windows]
How to run python in virtual space (for MacOS)
Install selenium on Mac and try it with python
[Python] How to name table data and output it in csv (to_csv method)
How to run tests in bulk with Python unittest
How to install Git GUI and Gitk on CentOS
Install OpenCV on Ubuntu + python
How to run setUp only once in python unittest
[Python] How to sort dict in list and instance in list
How to run Notepad ++ Python
How to run GUI programs such as tkinter in Python environment on WSL2
Install Docker on Arch Linux and run it remotely
How to use Decorator in Django and how to make it
How to develop in Python
[Python] How to save the installed package and install it in a new environment at once Mac environment
How to get RGB and HSV histograms in OpenCV
How to generate a QR code and barcode in Python and read it normally or in real time with OpenCV
Wall to put OpenCV 3.1.0 in raspberry pi 3 and run sample on python3: ImportError: No module named cv2 solution
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
Notes on how to use StatsModels that can use linear regression and GLM in python
Try to make it using GUI and PyQt in Python
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
How to swap elements in an array in Python, and how to reverse an array.
Don't lose to Ruby! How to run Python (Django) on Heroku
[Introduction to Udemy Python 3 + Application] 36. How to use In and Not
Install pyenv on MacBook Air and switch python to use
Comparison of how to use higher-order functions in Python 2 and 3
How to convert Youtube to mp3 and download it super-safely [Python]
Get Python scripts to run quickly in Cloud Run using responder
Object-oriented in C: Refactored "○ ✕ game" and ported it to Python
How to execute external shell scripts and commands in python
Install CaboCha in Ubuntu environment and call it with Python.
How to log in to AtCoder with Python and submit automatically
Overview of Python virtual environment and how to create it
How to install python using anaconda
[Python] How to do PCA in Python
Python 3.6 on Windows ... and to Xamarin.
How to install mysql-connector-python on mac
How to install and use Tesseract-OCR
Install and run dropbox on Ubuntu 20.04