Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [opencv]

OpenCV (Open Source Computer Vision Library)

0
votes
0answers
29 views

How should OpenCV 2 be installed on Ubuntu 16.04.5 LTS?

I need OpenCV 2 for a legacy program, specifically OpenCV 2.4.9.1. I have attempted to install python-opencv=2.4.9.1+dfsg-1.5ubuntu1 and libopencv-dev=2.4.9.1+dfsg-1.5ubuntu1. The former appears to ...
0
votes
1answer
18 views

In 18.04 opencv waitKey loop exit immediately

I have compiled and linked example from Example source Successfully. In Ubuntu 16.03 begin to work after entering user to group video. I did the same in 18.04 but program exits immediately. I try to ...
1
vote
0answers
20 views

How can OpenCV2 (specifically version 2.4.9.1) be installed on Ubuntu 18.04?

I have a large program that is dependent on OpenCV2. The ultimate aim is to modify that program such that it is dependent on OpenCV3 or OpenCV4, but I do not have the time to learn how to rewrite the ...
0
votes
1answer
128 views

cv2.error: (-215) size.width>0 && size.height>0 in function imshow

import cv2 import numpy cap = cv2.VideoCapture("test1.avi") while 1: ret, frame = cap.read() cv2.imshow("cap", frame) if cv2.waitKey(100) & 0xff == ord('q'): break cap....
0
votes
0answers
35 views

Already installed OpenCV but where is the folder?

I am trying to run this code which requires opencv installed. https://github.com/yuxng/MDP_Tracking/blob/master/compile.m One line of the code is below include = ' -I/usr/local/include/opencv/ -I/...
1
vote
0answers
30 views

Analog video capture (Hauppauge Live USB) Error - vidioc_qbuf: message too long

I know about Hauppauge 610 Analog Video Capture Script or Command and Script to Capture VHS Tapes Using the Hauppauge 610 USB-Live 2 Analog Video Digitizer and Video Capture Device. I run their ...
0
votes
1answer
28 views

Apt-get Cant find package: libav-tools_2.8.14-0ubuntu0.16.04.1_all.deb

I have been spending hours trying to install OpenCV3 for Ubuntu. One of the dependencies is: sudo apt-get install libavcodec-dev However, when I run that, I get: E: Failed to fetch http://...
0
votes
0answers
84 views

I can't `make` OpenCV 3.1 (Ubuntu 18.04)

I'm trying to make OpenCV 3.1 after I generate the build with cmake-gui. I get this error [ 16%] Generating precomp.hpp.gch/opencv_core_Release.gch In file included from /usr/include/c++/7/bits/...
0
votes
0answers
34 views

Issues with OpenCV HIGHGUI reading camera properties

I am using Ubuntu 16.04.4 VM (vmware workstation 14) with a Windows 10 host. I am running a custom program from a third party that requires a UVC compatible camera. I am using a Logitech c920 camera. ...
0
votes
1answer
26 views

Does opencv3 support measurementMatrix attribute for kalman filter?

I am using Ubuntu 16.04, python 2.7.12 and I have installed opencv 2.4.9.1 version. I am trying to run a code for kalman filter and I get the following error: AttributeError: 'cv2.KalmanFilter' ...
2
votes
0answers
31 views

OpenCV 3+ version naming on Bionic

I'm trying to understand the versioning conventions of OpenCV on Ubuntu Bionic. I'm interested in OpenCV 3+, and can build it myself if necessary, but I'd like to understand the rationale behind the ...
0
votes
0answers
107 views

How to set Path for opencv libraries and header files when installing opencv?

can anyone help me for two questions when installing opencv: how to set the OpenCV libraries "Path" as "/usr/lib/"? how to set the OpenCV header files. "Path" as "/usr/include/opencv"?
0
votes
0answers
21 views

Setting up OpenCV to use with Shotwell

I'm wanting to try the beta/unstable version 0.29.3 of Shotwell that contains the feature facial recognition. https://www.omgubuntu.co.uk/2018/06/new-shotwell-update-face-detection But I don't have ...
2
votes
1answer
57 views

Using OpenCV in ubuntu [closed]

NOTE: It isn't my machine, so I cannot upgrade it to Ubuntu 18, and I think the problem is unrelated to the ubuntu's version... I'm trying to use OpenCV in a Ubuntu 15.04, I was able to use it in a ...
2
votes
1answer
2k 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 * ...
0
votes
0answers
66 views

cv_bridge boost error

I am trying to create a ROS wrapper (http://wiki.ros.org/cv_bridge/Tutorials/ConvertingBetweenROSImagesAndOpenCVImagesPython) for caffe2 (Ros Kinetic, opencv version-3.4.1) (https://github.com/...
0
votes
1answer
97 views

Python opencv can't read in default images

Tutorial is given https://docs.opencv.org/3.3.0/dc/d2e/tutorial_py_image_display.html that we can read in default images from a few lines of code in interpreter. import numpy as np import cv2 # ...
0
votes
1answer
106 views

18.04: Kernel Panic with Asus Prime x299, Titan V

I'm using my linux machine for computer vision. When i running a feature detection with opencv i get in aprox. 25% cases a kernel panic (e.g. I run something like this: https://docs.opencv.org/3.0-...
1
vote
1answer
2k 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:...
0
votes
0answers
292 views

Why am I getting import cv2 error even I have installed it properly?

I'm trying to run python script which import opencv, I have sucessfully installed opencv, I can see the installation and version but when I try to call it through the script I get import error (cv) ...
0
votes
0answers
451 views

compile opencv-3.4.1 with cuda-9.2 on ubuntu 16.04

Can anybody give clear instructions to compile OpenCV-3.4.1 with Cuda-9.2 on Ubuntu 16.04? I have tried different guiding tutorials, but none of them worked. my machine has 2 GPUs (GTX 1080 Ti) and ...
0
votes
0answers
233 views

Install OpenCV4NodeJS

$ npm i opencv4node > opencv-build@0.0.12 install /home/<***>/node_modules/opencv4nodejs/node_modules/opencv-build > node ./install.js ' info install if you want to use an own OpenCV ...
1
vote
0answers
942 views

Error when installing OpenCV 3 - unable to locate package python3-opencv [duplicate]

julham@DESKTOP-JTEILQT:~$ sudo apt install python3-opencv Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python3-opencv
0
votes
2answers
49 views

How to get the port numbers?

My Setup consists of 3 cameras attached to USB hub. And the usb hub is connected to the computer (USB 3.0). I am trying to capture video from each of these camera and in order to do it I need to run ...
0
votes
0answers
374 views

Install python 3.5.2 with opencv in Ubuntu 18.04

This is the problem: I need to install ubuntu (with python 3.5.2 and opencv) in an Intel NUC. I need to make an installation and then clone it in other 25-30 NUCs. I can install everything in ubuntu ...
2
votes
0answers
298 views

How to fix this GTK library installation error?

I'm trying to install GTK library in ubuntu 16.04 LTS but I'm getting error saying E: Unable to correct problems, you have held broken packages. nikhil@nikhil-desktop:~$ sudo apt-get install libgtk-3-...
0
votes
0answers
232 views

Accessing an IP camera in Ubuntu through Code::Blocks IDE

I am working on a task in which I have to access live stream of an IP Camera (Edimax IC-3110P) using OpenCV 3. My Host system is Windows 10 and I have used Virtualbox to run Ubuntu 16.04 (Xenial) 64-...
3
votes
2answers
827 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
0
votes
0answers
201 views

libcv.so.4: cannot open shared object file

Can't install libcv.so.4 Installed libcv, libcvaux, -dev, :i386 doesn't work. Can't find version 4 of libcv, only 2.4. How do I know where to pick the libraries from? just doing apt search doesn't ...
2
votes
2answers
1k views

How to install OpenCV3 for Python 3.6 on Ubuntu 16?

I have tried installing OpenCV from source. It installs perfectly for python 2.7 and python 3.5, but isn't installing for python 3.6. I built it using the following command: cmake -D ...
0
votes
0answers
422 views

Problems installing OpenCV with Cmake

I'm following a tutorial (https://www.learnopencv.com/install-opencv3-on-ubuntu/) to install opencv 3.0 on ubuntu 16, but I've got problems in step 5.2: Run Cmake, until step 5.1 was everything ok. ...
0
votes
0answers
34 views

I have ubuntu 14 and opencv 3.2.0 I want to compile hough forest by gall but there is an error

INCLUDES = -I/usr/local/include/opencv LIBS = /usr/lib/libopencv_core.so /usr/lib/libopencv_highgui.so /usr/lib/libopencv_imgproc.so LIBDIRS = -L/usr/lib OPT = -O3 -Wno-deprecated CC=g++ ....
0
votes
0answers
153 views

How can i switch my freenect library to virtual environment

I am new to Linux so please bear with me. I was trying to access Kinect with my 32-bit laptop Ubuntu 16.04 in it and I have installed OpenCV in virtual environment using this blog and I had also ...
-1
votes
1answer
2k views

Delete OpenCV 3.1 completly

I installed the OpenCv 3.1 months ago and it caused problem because of my assignment need a lower version of openCv now i searched on web and find some uninstall function. Seems work to me but when i ...
3
votes
1answer
2k 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 ...
0
votes
1answer
430 views

Opencv 3.1 compiled with FFMPEG, but won't open https urls

I work on a 16.04 system, and have successfully installed opencv 3.1 with FFMPEG flags enabled. I double checked this was actually the case by cv2.getBuildInformation() and I got FFMPEG = YES. I am ...
1
vote
0answers
402 views

OpenCV path error in cmake

Every time when I try to build and install any library which depends on OpenCV, The cmake of that library throws the following error, -- OpenCV ARCH: -- OpenCV RUNTIME: -- OpenCV STATIC: OFF ...
2
votes
0answers
191 views

Installing c/cpp opencv on ubuntu 17.10

I want to know how can i install Opencv3 on Ubuntu 17.10 , when i want to install Opencv3 modules like libjasper-dev, my system cant found them on the repository
0
votes
0answers
91 views

How to use openCV with python 3 [duplicate]

I'm using Ubuntu 17.10. I installed OpenCV 3.1.0 in my machine. OpenCV work fine with python 2, but every time I tried to open OpenCV application with python3, I get error. Traceback (most recent ...
0
votes
0answers
554 views

No rule to make target error

I'm having an error while trying to build opencv 3.3. When i run: nvidia@tegra-ubuntu:~/src/opencv-3.3.0/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D ...
0
votes
0answers
160 views

How can I install a library in a custom path as if I installed it by using apt?

For example, if I want to install OpenCV library in a custom path, inside a secondary disk, which files I have to change, to have it linked as if it was installed in /usr/local/lib.
1
vote
0answers
180 views

How can I install OpenCV(version 3.4) full software for Ubuntu 17.10? [duplicate]

If possible I would like to install it using apt commands.
1
vote
1answer
82 views

Implications of disabling nouveau? [closed]

I want to compile OpenCV with CUDA support but first I need to install NVIDIA drivers. So my question is: Based on this thread, some people seem to have problems with disabling nouveau? And Ubuntu ...
0
votes
0answers
2k views

The source directory / does not appear to contain CMakeLists.txt [duplicate]

I was trying to install opencv. And I followed the steps given in this link. But, after cloning the directories opencv.git and opencv_contrib.git and running the command: cmake -D BUILD_TIFF=ON -D ...
0
votes
0answers
653 views

build opencv with ffmpeg support

I read nearly all of the questions about this subject but I didn't solve it. I installed OpenCV in the virtual environment a lot of times when trying to solve this problem. Problem is that: "cv2....
3
votes
0answers
4k 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/...
0
votes
0answers
262 views

How to build opencv from source in Ubuntu 16.04

After watching a video online and writing down each code to build opencv from source everything went as bad as the word bad. Everything went well with building opencv. The problem was I realized it ...
0
votes
1answer
242 views

Ant for Java not showing as installed but it is installed

today I was having problems and it was pertaining to getting opencv.3.3.0 working on my new computer. I never have had this issue but I switched the day before from using openjdk to oracle jdk and ...
0
votes
1answer
815 views

Could not find python Interpreter - Opencv cmake error

I am using Ubuntu 14.04 and trying to install opencv 3.3.0. While I execute cmake to get the make files, it is not able to locate the Python interpreter, displaying the following message (though the ...
0
votes
0answers
563 views

How to install OpenCV for python3 in Ubuntu 17.04 via apt? [duplicate]

In this answer, mjm suggested installing OpenCV from apt repositories. I installed them and python3 couldn't find module cv2. I later read OpenCV for python3 can be installed with package python3-...