Questions tagged [opencv]

OpenCV (Open Source Computer Vision Library)

A library of programming functions for real time computer vision.

261 questions
26
votes
7 answers

How to install OpenCV 3.1 for Python 3.5 On Ubuntu 16.04 LTS?

How to install OpenCV version 3.1 on Ubuntu 16.04 LTS to work with Python 3.5.1? I tried this on a VM but obviously that is useful to do if you want to work with Python 2.
Billal Begueradj
  • 5,649
  • 10
  • 38
  • 56
24
votes
3 answers

How to install opencv 2.9 for python?

I have been having the exact same problem as described in this post and someone in the answers suggested that you upgrade to opencv version 2.9. I was wondering how do that? I installed the version I have now by doing sudo apt-get install…
evan54
  • 695
  • 4
  • 10
  • 19
20
votes
1 answer

Installing libgtk-x11-2.0.so.0 in Ubuntu 15.04

I'm trying to install opencv on my Ubuntu 15.04 server. I'm using the conda package manager. conda install -c https://conda.binstar.org/menpo opencv3 When I try importing cv2, the Python package, I get the following error. ImportError:…
Carpetfizz
  • 624
  • 2
  • 7
  • 17
19
votes
3 answers

ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

How should I solve this error in Ubuntu16.04? import cv2 File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/cv2/__init__.py", line 3, in from .cv2 import * ImportError: libgthread-2.0.so.0: cannot open shared object…
Mona Jalal
  • 4,299
  • 20
  • 64
  • 96
18
votes
5 answers

How to uninstall OpenCV 2.4.9 completely from Ubuntu?

I want to integrate OpenCV with qt creator and for that OpenCV 3.0 is required. I have OpenCV 2.4.9 already installed and want to uninstall it completely as it is causing problems in some functions. I would also like to know whether OpenCV 3.0 can…
Naman Sogani
  • 347
  • 1
  • 4
  • 12
16
votes
5 answers

"/usr/bin/ld: cannot find -lcudart"

I am newbie to Ubuntu and using Ubuntu 14.04 64-bit. I want to make a project that uses cuda and opencv I got the following error when running cmake . && make Linking CXX executable ground_estimation /usr/bin/ld: cannot find -lcudart collect2:…
Arash
  • 273
  • 1
  • 4
  • 9
16
votes
5 answers

Installing opencv

I've downloaded opencv but unfortunately I've got no idea how to install it. All the pages I found online were only telling me how to download and install it directly from the console, not what to do when you already have it downloaded. Could…
user185184
  • 161
  • 1
  • 1
  • 3
15
votes
1 answer

Why can't my program find the libraries in "/usr/local/lib"?

I'm on Ubuntu 10.10, and I've just upgraded opencv to 2.4.2. The problem is that each time I open a new shell and try to compile and run, it compiles but doesn't run due to the following error: ./a.out: error while loading shared libraries:…
nkint
  • 1,975
  • 7
  • 21
  • 24
14
votes
2 answers

How to undo apt-get autoremove

I just walked into the trap of calling sudo apt-get install autoremove I did it because I was unable to install sudo apt-get install libopencv-dev because of unmet dependencies. Now my ros-indigo installation is broke, opencv is still not…
mcExchange
  • 2,928
  • 9
  • 23
  • 33
9
votes
2 answers

Is it possible to only download a single frame from a youtube video?

Let me explain what I had set up. I've been using pytube (Python module) to download videos from YouTube. I would then extract a few random frames from the video and save them as jpegs. I don't need the audio, nor the video. Now, I've been…
binarychrom
  • 91
  • 1
  • 3
9
votes
2 answers

Unable to locate package libgstreamer0.10-dev on Ubuntu 18.04

I'm trying to install OpenCV4 as explained here When I get to sudo apt -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev I receive Reading package lists... Done Building dependency tree Reading state information... Done E:…
Matheus Leão
  • 191
  • 1
  • 1
  • 2
7
votes
3 answers

Missing write permissions in home/user/anaconda2

I am trying to install opencv using the command conda install opencv This command worked on my laptop, but i am getting following error when I try it on my desktop computer. Both systems are running Ubuntu 14.04 Fetching package metadata:…
Mobeen
  • 359
  • 1
  • 2
  • 13
6
votes
1 answer

Install OpenCV 3 on Ubuntu 17.10

I'm using Ubuntu 17.10 and I want to install OpenCV 3 on it. How can I install OpenCV for Python 3 on Ubuntu 17.10?
Ali Razmdideh
  • 5,710
  • 2
  • 34
  • 51
6
votes
3 answers

Where is OpenCV installed?

I have followed this guide to install OpenCV 2.4.8 OpenCV documentation says that I should find OpencV usr/local/include/opencv/ yet I find nothing. Can someone tell me where to find the installed OpenCV files? EDIT I'm not sure why the script…
Raed
  • 173
  • 1
  • 1
  • 7
6
votes
7 answers

Unable to insall libgtk2.0-dev on ubuntu 12.04

I am using opencv 3 on ubunut 12.04 and while displaying an image the error message asks me to build the library with libgtk2.0-dev. I tried sudo apt-get install libgtk2.0-dev but I get the following error. teraflops@teraflops-Inspiron-3542:~$ sudo…
rotating_image
  • 83
  • 1
  • 1
  • 11
1
2 3
17 18