Questions tagged [opencv]

OpenCV (Open Source Computer Vision Library)

A library of programming functions for real time computer vision.

262 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.
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
  • 745
22
votes
4 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,695
  • 21
  • 74
  • 102
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:…
19
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
  • 303
  • 1
  • 4
  • 9
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…
18
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
  • 2,065
17
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…
16
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
  • 3,398
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…
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
  • 358
7
votes
3 answers

Capturing webcam video with OpenCV in WSL2

I am trying to access my webcam through OpenCV in WSL2 (Ubuntu). I found this blog post where it explains how to connect USB devices to WSL2. Running usbipd wsl list in windows command prompt lists the following devices: > usbipd wsl list BUSID …
Terrarium
  • 345
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?
6
votes
1 answer

Is there an equivalent of virtual env but for the whole of ubuntu?

Python has a wonderful tool called a virtual environment, which lets you effectively hermetically seal various python libraries (which may conflict with each other!) from each other. Is there an equivalent tool for the whole of Ubuntu? Or, rather,…
eriophora
  • 161
1
2 3
17 18