0

I've been wanting to work more with images, and opencv sounds like a great resource, but I can't figure out how to get it up and running in Python on Cloud9.

I've tried using the terminal commands:

[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

Which seemed to work until I tried to do import cv2 and that failed with the error message "No module named cv2".

I then downloaded the latest version of opencv from sourceforge and extracted it into the folder I put my program in. Again, "No module named cv2".

How can I check to see if opencv installed correctly? How can I get the import cv line to work?

Pro Q
  • 4,391
  • 4
  • 43
  • 92

1 Answers1

1

sudo add-apt-repository ppa:mc3man/trusty-media

Run this file in your terminal and then run this

sudo apt-get install python-opencv
rivaldo4t
  • 165
  • 3
  • 10
baranskistad
  • 2,176
  • 1
  • 21
  • 42