Questions tagged [opencv]
OpenCV (Open Source Computer Vision Library)
260
questions
0
votes
0
answers
23
views
OpenCV imgproc not found
i am trying to compile a OpenCV Application for an ARMs target.
I crosscompiled all the libraries but when i try to compile my code:
#include<opencv2/imgcodecs.hpp>
#include<opencv2/highgui....
0
votes
0
answers
57
views
I would like to connect my Kinect v2 to my pc in ubuntu 22.04, Is it possible?
I am trying to use the Kinect v2 for a project using OpenCV in Ubuntu, but a quick Google search gives me the drivers for Ubuntu 20.04 only. I Don't know how to proceed. Should the Ubuntu version be a ...
0
votes
1
answer
547
views
Opencv crashes on startup
Trying to use face recognition on real time on my webcam but opencv crashes just after opening camera.
here is the code:
import face_recognition
import cv2
import os
import re
fileIndex = {
'#...
0
votes
1
answer
70
views
Can't use opencv in upgraded Python3
I upgraded my Python 3.6.9 to Python 3.9. Prior to upgrading, I was able to use opencv but somehow I can't use opencv and other libraries (matplotlib.pyplot etc.). What is problem with that ?
I also ...
1
vote
1
answer
1k
views
PiCamera with OpenCV 4.5.4 on Ubuntu 22.04 Server (RaspberryPi 4B) Capture Returns Empty Frame
Installed OpenCV 4.5.4 to Ubuntu 22.04 Server on Raspberry Pi4B.
( sudo apt install python3-opencv -y )
Video4Linux sees the camera:
$ v4l2-ctl --list-devices
...
unicam (platform:fe801000.csi):
/...
1
vote
0
answers
418
views
Unmet dependencies for libopencv
I tried to upgrade to ubuntu 20 but the process somehow got stuck in the middle. Now I am finding it difficult to get back my system to normal as everything I install meets with the same output. For ...
0
votes
1
answer
293
views
Is it possible to connect 8 usb cameras to Ubuntu , I'm using a TP-Link 7 ports hub , and I cant find the way to access the cameras at the same time
I'm working on a project on ROS and I need to connect 8 usb cameras , so I bought a usb hub from TP-link but still cant access all the cameras at the same time , could you help me with this ?
0
votes
1
answer
2k
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-...
3
votes
1
answer
12k
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 ...
0
votes
1
answer
4k
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....
1
vote
1
answer
3k
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
...
2
votes
1
answer
359
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 ...
0
votes
1
answer
385
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 ...
1
vote
0
answers
310
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 ...
1
vote
0
answers
875
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 ...
2
votes
1
answer
20k
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 ...
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-...
1
vote
0
answers
70
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 ...
1
vote
0
answers
402
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 ...
0
votes
0
answers
217
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 ...
0
votes
1
answer
55
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
1
vote
1
answer
2k
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; ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
5k
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 ...
0
votes
1
answer
330
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 ...
0
votes
0
answers
2k
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):
...
0
votes
1
answer
1k
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 ...
3
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 ...
2
votes
1
answer
1k
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 ...
1
vote
1
answer
737
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()...
4
votes
2
answers
15k
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 ...
0
votes
0
answers
162
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/...
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) ...
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 ...
1
vote
0
answers
2k
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 ...
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 ...
2
votes
0
answers
688
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 --...
0
votes
1
answer
858
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 ...
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?
1
vote
1
answer
198
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 ...
-1
votes
1
answer
552
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 "...
0
votes
1
answer
616
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 ...
1
vote
1
answer
851
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'...
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....
1
vote
1
answer
1k
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.
...
-1
votes
1
answer
111
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 ...
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 ...
1
vote
0
answers
81
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 ...
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 ...
0
votes
1
answer
73
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 ...