Questions tagged [opencv]

OpenCV (Open Source Computer Vision Library)

Filter by
Sorted by
Tagged with
0 votes
1 answer
264 views

cannot build install opencv4.5.5 for ubuntu 22.04

I am trying to build install opencv4.5.5 with cuda10.6 on ubuntu 22.04. Followed every step in this tutorial https://www.sproutworkshop.com/2022/02/how-to-compile-opencv-4-5-5-with-cuda-11-6-and-cudnn-...
user avatar
1 vote
0 answers
574 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 ...
user avatar
  • 153
0 votes
0 answers
333 views

Could not find a configuration file for package "OpenCV" that is compatible with requested version "3.0"

CMake Error at CMakeLists.txt:88 (find_package): Could not find a configuration file for package "OpenCV" that is compatible with requested version "3.0". The following ...
user avatar
0 votes
1 answer
736 views

How to use opencv-python on WSL2 Ubuntu20.04

I have just installed a Ubuntu-20.04 on WSL2. And I installed a miniconda env with python 3.7, and then I installed opencv-python by "conda install opencv". But when I try the simplest cv2....
user avatar
1 vote
1 answer
680 views

libopencv-dev and dependencies could not be installed [duplicate]

I am attempting to install howdy, and apt yields this result: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable ...
user avatar
2 votes
1 answer
84 views

Recover opencv2/ opencv4 folders from /usr/include

I had a lot of problems with my opencv installation and along the way I accidentally deleted the opencv folders in /usr/include. How can I recover them in the right way so that the following error ...
user avatar
0 votes
1 answer
90 views

Linking error building OpenCV Contrib 4.5.4 with LibTiff4

Scenario I am having some trouble building the latest version of OpenCV's contrib codebase from source, but the issue might just underlie a more generic lack of depth on my part: Fetching the 4.5.4 ...
user avatar
  • 2,144
0 votes
0 answers
33 views

Restoring a backup from win32diskimager of ubuntu 20.04 on Raspberry, get some errors

I tried to restore a backup from Ubuntu20.04 with win32diskimager ( at the same SD) and works weel. The problem is when I need to update, like "sudo apt-get...".Thats return a problem with ...
user avatar
  • 1
0 votes
0 answers
15 views

http://ppa.launchpad.net/timsc/opencv-3.3/ubuntu bionic Release' does not have a Release file [duplicate]

OS, e.g. Ubuntu18.04, Cuda version: 11.1 TensorRT version: 7.2.2.3 When I run sudo add-apt-repository ppa:timsc/opencv-3.3 to install opencv, I receive this output: ubuntu@ip-172-71-6-27:/$ sudo add-...
user avatar
1 vote
0 answers
156 views

Enable "use CUDA" for OpenCV

In Ubuntu 18.04 (Jetson Nano) I have OpenCV 4.1.1 and CUDA 10.2.89. However, the command below, in Python, returns 0: cv2.cuda.getCudaEnabledDeviceCount() which means OpenCV is not using CUDA. What ...
user avatar
1 vote
0 answers
436 views

Ubuntu 21: sudo apt install failed, causing by gcc-11-base unmet dependencies on libgfortran5 :(

My sudo apt install encountered problem when trying to install OpenCV. It fails on package libgfortran5, which OpenCV and libopencv-dev needs. The output is The following packages have unmet ...
user avatar
  • 11
1 vote
1 answer
5k 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 ...
user avatar
0 votes
0 answers
44 views

OpenCV installation in ubuntu 18.04 on Jetson Nano [duplicate]

when I am running this ubuntu command below error is coming: For installation I am using this link: https://jkjung-avt.github.io/opencv-on-nano/ Err:12 http://old-releases.ubuntu.com/ubuntu xenial-...
user avatar
1 vote
0 answers
39 views

I'm having trouble installing OCRopy, I want to use it to create train data for an old manuscript in latin. What prereqs are needed and lines to write

So I am new to using Ubuntu and I am trying to install OCRopy to make train data with the end goal of creating a transcript for a 15th c. manuscript. So far I am considering that my problem may be a ...
user avatar
  • 11
1 vote
0 answers
204 views

libopencv-highgui2.4v5 : Depends: libpng12-0 (>= 1.2.13-4) but it is not going to be installed when installing libopencv-dev python-opencv [duplicate]

How should I fix the following problem? (vision) mona@goku:~/research/code/vision/integration$ sudo apt-get install libopencv-dev python-opencv Reading package lists... Done Building dependency tree ...
user avatar
  • 3,691
0 votes
0 answers
141 views

OpenCv for c++ on ubuntu is not getting installed

Assalamualaikum I followed this article from top to bottom But when I executed - pkg-config --modversion opencv an error message showed up -'Package opencv4 was not found in the pkg-config search ...
user avatar
0 votes
1 answer
46 views

Can't boot ubuntu, deleted 86_64x gnu accidently

Hi please help by mistake I deleted all of x86_64 linux folder and now the boot got stuck. Please help thank you
user avatar
1 vote
0 answers
782 views

How do I install OpenCV for Python with freetype support?

How do I install OpenCV (I'm using Ubuntu 20.10) in such a way that I can do import cv2 cv2.freetype and not get an AttributeError? Do I have to compile it from source?
user avatar
1 vote
1 answer
1k views

Error when installing opencv (any version) on Ubuntu 18.04

I got an error in make command in opencv. [/usr/bin/ld: /usr/local/lib/libavcodec.a(vc1dsp_mmx.o): relocation R_X86_64_PC32 against symbol `ff_pw_9' can not be used when making a shared object; ...
user avatar
0 votes
1 answer
1k views

Ubuntu 20.04 : error when installing Caffe

I'm trying to install Caffe-Segnet (http://mi.eng.cam.ac.uk/projects/segnet/tutorial.html) on my Ubuntu 20.04 for a project I'm working on, and I encountered many difficulties, even when trying to ...
user avatar
0 votes
1 answer
2k views

opencv was not found in the pkg-config

Using cmake and cuda i create opencv , the file was saved in /usr/local/lib/python3.8/dist-packages/cv2/python-3.8/cv2.so now i'm trying to install darknet but i got this error Package opencv was not ...
user avatar
0 votes
1 answer
215 views

OpenCV: Error - Module not found -(on IDLE)

I have installed OpenCV on Ubuntu 18.04. The python installation is using conda(screenshot attached) I can import OpenCV from terminal and jupyter notebooks import on terminal and work with it. Now I ...
user avatar
0 votes
0 answers
994 views

How do I install OpenCV for python 3.7.9 in Ubuntu 20.04

I have the following configuration: python --version Python 3.7.9 python3 --version Python 3.8.2 I must have this configuration so I can use python functions to call Matlab functions (according to ...
user avatar
  • 269
0 votes
0 answers
1k views

How to specify the display used by cv2.imshow()

Goal: On a system with two displays and I want to specify the display used by the cv2.imshow command (python 3.6 with Ubuntu 18.04) Here is what I have tried: import os import cv2 def f(display): ...
user avatar
0 votes
1 answer
554 views

Error when installing libtiff5-dev

I've got stucked for 4 days on installing openCV.always got error while compile the source code. I assume because libtiff5-dev not installed on my machine, then I tiedy to install libtiff5-dev, here ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 1,537
2 votes
1 answer
807 views

How to reinstate videodev2.h in ubuntu 20.04

While building OpenCV I accidentally linked the wrong header file. Instead of linking videodeh.h like this : $ sudo apt-get install libdc1394-22 libdc1394-22-dev libxine2-dev libv4l-dev v4l-utils $ cd ...
user avatar
1 vote
1 answer
553 views

GTK style widget error in cv2

I wrote a script which perfectly runs in Windows. This is the script: import imutils import cv2 from imutils.video import VideoStream vs = VideoStream(src=0).start() while True: frame = vs.read()...
user avatar
  • 23
3 votes
2 answers
5k 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 ...
user avatar
0 votes
0 answers
109 views

OpenCV not installing at the last stage on my Lubuntu system

I was installing OpenCV on Lubuntu. I was on very last stage of installation. I'm not understanding what to do next. Below is the error: (cv) archit@ubuntu:~/opencv/build$ cd /usr/local/python/cv2/...
user avatar
2 votes
1 answer
2k 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) ...
user avatar
0 votes
0 answers
3k views

Opencv4 giving undefined reference errors with pkg-config

I have recently updated to ubuntu 20.04. The default OpenCV version is now 4.2 and it is giving a lot of compilation errors. Below is a sample program #include "opencv2/highgui/highgui.hpp" #include ...
user avatar
1 vote
0 answers
1k views

Linking OpenCV library

So i already install OpenCV library two years ago on virtualenviroment for python and it work well using this step. Now i create some image processing program in C languange, but everytime i try to ...
user avatar
1 vote
1 answer
2k views

Using Kinect v1 as webcam in python

So for the last couple of days i've been trying to use my Kinect v1(1414) as a webcam for a project with OpenCV (Im using Ubuntu 16.04). I already installed Openkinect freenect (multiple times) and ...
user avatar
2 votes
0 answers
527 views

After ~1 Hour of working, VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

I'm using OpenCV with Python3 to capture images from a 720p WebCam on USB. It's operating on a headless processor, so I can't use the Cam application to check the device. ubuntu@arm:~$ pkg-config --...
user avatar
  • 121
0 votes
1 answer
634 views

Opencv Build Process Error on ubuntu raspberry pi 3b+

Hi I Need Some Help i have tried to install opencv in python 3.7 but i found on the internet that it is not supported so you have build it from the scratch. i followed this tutorial Here i was able ...
user avatar
0 votes
1 answer
1k views

is opencv::dnn module compatible with Ubuntu

I have compiled an application (YOLOv3) using opencv::dnn module on windwos. Now I want to compile the same application on Ubuntu. But I am unable to run it. Have some worked on opencv::dnn in Ubuntu?
user avatar
1 vote
1 answer
175 views

Error In installing ubuntu open Cv on ubuntu server raspberry pi 3b+

My python version is python3 --version Python 3.7.5 i am trying to install opencv on raspberry pi 3b+ i have used the following command but i always get error pip3 install opencv-python pip install ...
user avatar
-1 votes
1 answer
355 views

How i solve this error?

My Code is import numpy as np import cv2 as cv img = cv.imread('img.jpg',0) cv.imshow('image',img) cv.waitKey(0) cv.destroyAllWindows() And the error is Traceback (most recent call last): File "...
user avatar
0 votes
1 answer
420 views

When I open terminal i find this message . how i resolve this?

I see This error when i open terminal. It occur after my failure in installing open cv and pandas on my computer. In this image the error is /home/ujjwal/anaconda3/bin/python: Error while finding ...
user avatar
1 vote
1 answer
683 views

Missing files on libopencv-contrib?

I'm trying to use some features/modules of the opencv_contrib package, but apparently the version on Ubuntu's repositories (using 18.04 LTS), for some reason, does not include the tracking module? I'...
user avatar
  • 1,260
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....
user avatar
  • 125
1 vote
1 answer
854 views

Can't install opencv 2.4.9 on Ubuntu 18.04, get CXXCompiler error

I am trying to install opencv 2.4.9 on Ubuntu 18 to support an older software. After downloading the version from the sourceforge link, I create a build folder and run the following cmake command. ...
user avatar
-1 votes
1 answer
102 views

What do I do after running make, to use lcd-opencv-simulator?

I'm new to Ubuntu and I need to run a LCD simulator our professor has given us without giving us sufficient information on how to actually use it. The program requires OpenCV, which I believe I ...
user avatar
  • 1
0 votes
1 answer
2k views

Why python script stops executing the statement of loop but the process itself is alive?

i am running face recognition python script on Ubutnu 18.04 as a daemon which takes pictures from another server with ssh request and performs operations on them . i have this code in python script ...
user avatar
1 vote
0 answers
72 views

The ssh connection is lost when force quit a window

I'm using ssh to connect to the server (Ubuntu 19.04) and work with jupyter-notebook. I open a window using OpenCV, and then when I want to close the window, I should force quit it, because the close ...
user avatar
1 vote
0 answers
1k views

why does rtsp stream in vlc takes less cpu load than python opencv rtsp?

Even though both of the applications are built using same opencv backend, why does the vlc player take lesser load (almost half the load) than a python opencv application to stream the same rtsp video ...
user avatar
0 votes
1 answer
65 views

I'm installing opencv in ubuntu 16.04. After installing the necessary prerequisites I used the following command:-

avi@avi-VPCEB46FG:~$ cd ~/opencv avi@avi-VPCEB46FG:~/opencv$ cd build avi@avi-VPCEB46FG:~/opencv/build$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local .. During the installation ...
user avatar
1 vote
2 answers
1k views

Problem running private Application with FFMPEG on Ubuntu 19

I am facing the following error when running an application: ./Application: /lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54: version `LIBAVUTIL_FFMPEG_54' not found (required by /usr/local/lib/...
user avatar
0 votes
0 answers
520 views

How to fix undefined reference to TIFFOpen-TIFFClose-TIFFGetFiled on Ubuntu-19.04

I have recently installed Ubuntu-19.04. I saved the the most important data from Ubuntu-18.04 as an enormous .tar file as I had some broken files on my 18.04 and transferred everything to the new 19....
user avatar
  • 125

1
2 3 4 5 6