Questions tagged [opencv]
OpenCV (Open Source Computer Vision Library)
265
questions
26
votes
7
answers
126k
views
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
65k
views
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 ...
20
votes
4
answers
91k
views
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 <module>
from .cv2 import *
...
20
votes
1
answer
69k
views
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 ...
18
votes
5
answers
143k
views
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. ...
17
votes
5
answers
161k
views
"/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 ...
17
votes
1
answer
66k
views
Why can't my program find the libraries in "/usr/local/lib"? [duplicate]
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....
16
votes
5
answers
56k
views
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 ...
15
votes
2
answers
19k
views
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 ...
9
votes
2
answers
28k
views
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 ...
9
votes
2
answers
11k
views
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 ...
7
votes
3
answers
36k
views
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 ...
6
votes
7
answers
30k
views
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 ...
6
votes
1
answer
8k
views
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
3
answers
107k
views
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 ...
6
votes
1
answer
14k
views
image viewer in ubuntu that can show the pixel coordinates and pixel value as well for current mouse location in the image
I am looking for any image viewer in ubuntu which can show the pixel coordinates and pixel value under current location of mouse other than gimp.....
thanks for your help
5
votes
1
answer
24k
views
Building Caffe: Failed to see hdf5.h
Hello Caffe is a library for deeplearning. When trying to build that library under Ubuntu 15.04, the compilation fails with the message:
:~/App/caffe$ make all
PROTOC src/caffe/proto/caffe.proto
CXX ...
5
votes
4
answers
10k
views
how do I install opencv4.0 on 18.10?
I have been trying to install opencv4.0.1 on ubuntu for a few weeks now. I have followed the opencv installation instructions
and I am able to make and compile the library, yet after installation, ...
5
votes
2
answers
11k
views
Linking error when trying to compile on a shared drive
I am trying to compile the OpenCV library on a shared drive on my system. I was able to configure and generate makefiles successfully by using these settings, but when I try to compile I get the ...
5
votes
1
answer
4k
views
How to install python-opencv without answering the quesitons?
I'm trying to create a docker image (using a Dockerfile) and as part of the process, I have to install apt-get install python-opencv. But it asks all these questions about geographic area and other ...
5
votes
2
answers
3k
views
How to Install Shotwell with Face Detection in Bionic Beaver 18.04 LTS
I'm transitioning from Google Photos and I really liked Shotwell's features. However, face detection/recognition is very important to me because of how I manage my photos. I viewed this blog post that ...
5
votes
1
answer
328
views
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 ...
5
votes
1
answer
4k
views
How do I get OpenCV and Firefly MV working?
I'm trying to get started with the Point Grey Firefly-MV USB camera in Ubuntu. I have followed the instructions from Point Grey, and got completely black images (Yes, the lens cap is off). Does ...
5
votes
2
answers
5k
views
How can I use OpenCV 3.0 without overwriting my current version of OpenCV (2.4.8) on Ubuntu?
I'm working with ROS indigo on Ubuntu 14.04 LTS, which automatically installs OpenCV 2.4.8 on my Linux machine. I'm very new to how Ubuntu works, so I really don't want to mess with the OpenCV that's ...
5
votes
1
answer
4k
views
Running caffe gives error Check failed: error == cudaSuccess (30 vs. 0) unknown error
I'm trying to get caffe to run such that I can use it via python. To do this I have followed this tutorial. I'm on Ubuntu 16.04.
When I get to make runtest I get the error :
$ make runtest
CXX/LD -...
4
votes
3
answers
3k
views
OpenCV compiles correctly but fails during .deb packaging
Attempting to follow some tutorials on building a .deb package for a newer version of OpenCV in Ubuntu 18.04. Here are my steps:
wget https://github.com/opencv/opencv/archive/4.1.0.zip
unzip 4.1.0....
4
votes
1
answer
290
views
What is the path of libraries (samples, docs) setted up from Software Center of Ubuntu 12.04?
I installed OpenCV and its DOC and Samples from software center but I cannot find the them at anywhere. What is the certain location for all these at Ubuntu12.04
4
votes
1
answer
8k
views
OpenCV install problems on Studio 12.04 - broken dependencies [duplicate]
Problem:
I'm trying to install OpenCV (video analytics) and am following the Ubuntu OpenCV installation documentation.
The provided script has a line which executed for some time, taking away more ...
4
votes
3
answers
16k
views
libv4l2: error turning on stream: Invalid argument VIDIOC_STREAMON: Invalid argument
I'm working on camera using opencv 3.0.0 and C++ with Ubuntu 14.04 ,
When I run a program using the camera and stop it with Ctrl + C, I can't get it run for a second time and it gives me the ...
4
votes
1
answer
1k
views
opencv java 'No such file or directory' after upgrade from 14.04 to 16.04
I recently upgraded from 14.04 to 16.04 LTS. I have been working on a java application on this machine for months, which does image processing using opencv. I compiled opencv from source. I do my ...
4
votes
2
answers
19k
views
make opencv2/opencv.hpp not found
I am trying to build fastfusion from this repo: https://github.com/tum-vision/fastfusion . In the installation step, after running CMake ., I have to run make. But the make command fails with the ...
4
votes
0
answers
2k
views
Simple OpenCV program crashes
I am currently having a problem. I am following the instructions given in this book "OpenCV 2 Computer Vison Application Programming Cookbook" for creating a simple image display program in OpenCV (2....
3
votes
4
answers
18k
views
CMake OpenCV installation issue
This is driving me nuts for the past three hours. I simply want to install CMake and then install OpenCV 3.1, but I am getting an Unsupported protocol error (please see below).
I installed CMake 3.4....
3
votes
1
answer
20k
views
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 ...
3
votes
2
answers
3k
views
How to install OpenCV without nVidia drivers
I have a laptop with on-board Intel graphics. I have been using OpenCV for years with this machine and I have managed to avoid manual compilation so far. But in Ubuntu 13.10, when I try to install ...
3
votes
2
answers
11k
views
use kinect camera as a webcam in ubuntu
I have a python openCV program that uses a webcam to track an image target. I switched computers, but this new computer does not have a webcam. I hooked up my kinect, installed stome stuff from ...
3
votes
3
answers
18k
views
VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV Unable to stop the stream: Device or resource busy
Running a private code that reads the data from the Webcam, I get the following error:
Loading weights from handyolo/weights/000010.weights... Done!
INFO:...
3
votes
2
answers
2k
views
Ubuntu 18.04 error importing Opencv
I've installed Ubuntu 18.04.
When I type:
import cv2
I had an error:
ImportError: /usr/lib/x86_64-linux-gnu/libtesseract.so.4:
undefined symbol: pixaDisplayTiledInColumns
3
votes
2
answers
6k
views
OpenCV undefined references for libQt5Core.so.5
Before starting, I would like to point out there actually is a very similar (probably exactly identical) question. However, I have been unable to solve my problem looking at the accepted answers.
I ...
3
votes
2
answers
4k
views
How to import Anaconda's modules in system's python?
I've installed opencv for Anaconda with this command:
conda install opencv
And when I run python3.6 in terminal , I can import cv2 module with any issue.
So opencv has been installed for Anaconda'...
3
votes
3
answers
7k
views
opencv compiling error ippicv
When I write this to terminal:
g++ LATCH_match.cpp -std=c++11 $(pkg-config opencv --cflags --libs)
I've got an error like this:
/usr/bin/ld: cannot find -lippicv
collect2: error: ld returned 1 exit ...
3
votes
1
answer
4k
views
fatal IO error 22 (Invalid argument) on X server ":0"
When trying to do openCV subplot on my Ubuntu 20.04 I get the following error
The X11 connection broke: Maximum allowed requested length exceeded (code 4)
XIO: fatal IO error 22 (Invalid argument) ...
3
votes
0
answers
5k
views
libcudnn.so.6 is not a symbolic link
While installing libopencv-dev using sudo apt-get install libopencv-dev i get following comments:
Processing triggers for libc-bin (2.23-0ubuntu9) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/...
3
votes
0
answers
6k
views
How can I install OpenCV 3.2.0 in Ubuntu 16.10 when it says sys/videoio.h is missing?
I'm following this tutorial http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/ to install OpenCV. I'm trying to install OpenCV 3.2.0 on Ubuntu 16.10.
After I enter
$ cmake -...
3
votes
1
answer
1k
views
Ubuntu 13.10 blank screen with cursor after installing libopencv-dev
After installing libopencv-dev from the Ubuntu repository, I get a blank screen with cursor after logging into a session (after restarting the computer). I think there were some Nvidia-related ...
3
votes
1
answer
2k
views
How to control mouse cursor using c?
As in windows there is a function setCursorPos in windows.h for controlling cursor position. What is the way to do this in ubuntu?
2
votes
3
answers
13k
views
unable to locate package libfaac-dev
I'm trying with installing-opencv-2-4-9-in-ubuntu-14-04 in a tutorial..
sudo apt-get install build-essential libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev ...
2
votes
2
answers
3k
views
OpenCV Build Error: "Cannot open options file specified with @"
I am having trouble installing OpenCV on my machine. I run Ubuntu 12.04.
I have followed this guide: http://www.raben.com/book/export/html/3 in order to install OpenCV 2.4.3 on my linux machine. ...
2
votes
1
answer
2k
views
Install from ppa:jonathonf/ffmpeg4 403 Forbidden [IP: 91.189.95.83 80]
I am (linux beginner) trying to install Opencv on Ubuntu bionic 18.04,
following this git shell scripts to install different version of OpenCV instructions.
But I'm getting a 403 Forbidden [IP: 91....
2
votes
1
answer
24k
views
Uninstall OpenCV 4.2.0 and its Libraries
I'm quite new to Ubuntu and I just installed opencv and some additional libraries using
sudo apt update
sudo apt install libopencv-dev python3-opencv ...