Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

Ubuntu 19.10: Enabling and using Raspberry Pi Camera Module v2.1

I have installed Ubuntu 19.10 64-bit on my raspberry pi4 with 1gb ram. I know raspbian would be the better choice, but I have to use Ubuntu for some other reasons. Moreover I know that Ubuntu Mate ...
1
vote
0answers
22 views

I cannot install opencv

I just bought a new camera for my pi so I installed it and then I wanted to test it out so I got a simple python program to test it: import cv2 as cv def testDevice(source): cap = cv.VideoCapture(...
2
votes
4answers
64 views

Install OpenCv in a raspberry pi 3 with c++

I've been working on a project with OpenCV and Visual Studio but I want to perform some tests on a Raspberry Pi 3, I haven't found accurate information about how can I use OpenCV in a Raspberry Pi ...
0
votes
3answers
2k views

Linking WiringPi library in CMakeLists

So, I have a C++ program that I've compiled with CMake and uses the OpenCV library which I'd like to integrate with wiringPi so I can use functions like digitalWrite(), digitalRead() etc... Before I ...
0
votes
1answer
379 views

Running openCV C++ file from python in Raspberrypi

I'm creating a object and color detection robot. Here in this case, I'm using C++ to run the camera and process the image with openCV in C++, but before I run the Camera, I want the robot to move and ...
0
votes
3answers
4k views

OpenCV 4 error?

When I run the command python faceDetection.py I get the error- VIDEOIO ERROR: V4L: can't open camera by index 0 Traceback (most recent call last): File "faceDetection.py", line 21, in <module&...
1
vote
1answer
2k views

How to access pi camera with OpenCV to Laptop?

I do not have HDMI supported monitor for Raspberry pi 3. I want to use OpenCV with my pi camera for image processing and access those images and videos with OpenCV image output to my LAPTOP, which is ...
0
votes
1answer
741 views

Install OpenCV faster - could it be transferred via a SD card?

I installed OpenCV on my RPI 3, now I have the new RPI zero W, since I know installing OpenCV (let's say 3.0.0) takes a very long time, I wondered if I could somehow transfer my already downloaded (...
1
vote
1answer
47 views

OpenCV installation error

I've followed this installation guide but on the last part where it says: Revert back the swap size to its original value of 100MB by editing the /etc/dphys-swapfile. And, restart the service by ...
0
votes
2answers
4k views

import cv2 not working Raspberry Pi

I used pip to install opencv3 with the following command on an Anaconda virtual environment. install opencv-python I successfully installed it because I can see the package in pip list. (olfatf)...
0
votes
1answer
76 views

How to transmit hand gesture data from a laptop to Raspberry-pi

I am making a hand gesture bot. In this hand gestures are detected from a laptop using image processing (used OpenCV & Python). I don't know how to transmit real-time output wirelessly of image ...
0
votes
1answer
3k views

OpenCV VideoCapture.isOpened() always returns False?

I followed the installation tutorial at https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/#comment-451314 , and everything installed fine. But I ...
0
votes
1answer
4k views

OpenCV 3,2 build hangs/freezes/get stuck during make build on RPi zero w

I have tried to compile OpenCV 3.2 onto my pi Zero W Board running Stretch and i'm using a 16GB SD Card (running SSH on Mac and Python 2.7). Running make to compile openCV takes over 9 hours to get ...
1
vote
2answers
3k views

Error Installing OpenCV on Raspberry Pi

I have been trying to install OpenCV on my Raspberry Pi with Python 3. I have followed this tutorial http://mitchtech.net/raspberry-pi-opencv/ and when I get to the make command it gets to around 14 ...
1
vote
0answers
26 views

How to make python3 aware of manually compiled opencv?

all this is on a 4Gb RPi 4GB. I compiled opencv from source following this guide and it built and compiled ok. Running opencv_version reports 4.4.0-dev. But in python3 when running import cv2 it says: ...
0
votes
1answer
536 views

sudo pip install packagename not working

sudo pip install packagename not working... I am not able to install python package using pip.
1
vote
1answer
117 views

opencv installation

`I tried installing opencv on my raspi 3B using pip, on trying to import cv2 i am getting an error Edit: code lines: Successfully installed opencv-python-4.1.1.26 `(cv) pi@raspberrypi:~ $ workon cv ...
0
votes
0answers
47 views

AttributeError: 'module' object has no attribute 'face'

I installed openCV on my pi following this install guide https://www.murtazahassan.com/opencv-raspberry-pi-installation/ My goal is to use facial recognition however I am having no luck getting it to ...
0
votes
0answers
20 views

importing cv2 error

Hey i have working on 2Rpi One is working fine but the other one is giving me this error. ImportError: /home/pi/.local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-arm-linux-gnueabihf.so: undefined ...
1
vote
0answers
81 views

HQ Camera crashes OpenCV application on Raspberry Pi 4

I have been developing an object tracking application with OpenCV 4.3.0 and C++. I am using an actively cooled Raspberry Pi 4 2GB RAM and the HQ camera module. Twice when I ran the program, I ...
0
votes
2answers
183 views

Installing opencv on a raspberry pi zero

I have been trying to install opencv on my raspberry pi zero loaded with buster. I have followed a couple of tutorials online with no success. I thought this tutorial worked until I tried to import ...
1
vote
1answer
66 views

Can Not able to install python OpenCv on raspberry pi 3?

I have been trying to run my 4WD Smart drive car with raspberry 3. I am using python 3 to implement algorithms and computer vision object detection. I also have a problem with Cheese camera on the pi. ...
0
votes
1answer
63 views

one RPI's capability to multi-task with complex Image Processing

I, as part of a project, have decided to implement a small scale version of automated collision avoidance system. I chose to go with Image based object detection. After initial research, I figured out ...
-1
votes
1answer
124 views

cv2.namedWindow freezes in Raspberry Pi 4

I'm trying to open a namedWindow using openCV in raspberry pi but it freezes after cv2.namedWindow("image")line. However, the project works in Windows. Before it freezes it prints the following ...
0
votes
0answers
17 views

Use PiCamera V2 is surprisengly working without picamera module and using OpenCV in python

I was convinced that in order to use the picamera V2 with openCV I needed to pass by picamera module in python or libraries such as raspicam in C++. However today I saw the following code working in a ...
0
votes
1answer
143 views

How to add openCV on PyCharm under rpi 3 B?

I am trying to add OpenCV lib on PyCharm running under Raspbian on a Rpi 3 model B. I tried the jessie version of commands but got stuck on the cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D ...
0
votes
1answer
32 views

SimpleCV console cmd is not working at all in RPI 3B running on Raspbian Buster release

I have enclosed the screenshot of the error above. Looking for solution to SimpleCV traceback/syntax error problem: I have already tried installing SimpleCV with a fresh image of Raspbian Buster. ...
0
votes
1answer
188 views

Installing opencv-3.3.0-r5 on Gentoo 64 bit OS at Raspbery Pi 3B+

My linux environment is pi64 /home/demouser # uname -a Linux pi64 4.14.31-v8-b36f4e9e1984+ #1 SMP PREEMPT Sun Apr 1 14:15:34 BST 2018 aarch64 GNU/Linux First time, I use Porthole to emerge opencv-3....
1
vote
2answers
689 views

trying to run 6 USB cameras simultaneously on a single Raspberry Pi 3B+ with add-on 4 port USB hub with external power

We are trying to simultaneously run 6 cameras on a Raspberry Pi 3B+ with an add-on 4 port USB hub that has an external power supply. The cameras are set at 15 FPS with a colour image size of 640 X 480....
2
votes
1answer
254 views

Raspberry Pi4 error capturing image with OpenCV, image comes half green

I am using a common logitech webcam with OpenCV. When I was using my RPI3 I had no trouble, but I wanted to improve my system so I bought a RPI4. Upon setting up my system with RPI4 using raspian ...
1
vote
1answer
3k views

Kernel throwing up all kinds of errors over night

I am developing a system that uses OpenCV with Python to access the csi camera, and PyGame for the GUI. Due to the nature of the system (security program) it needs to be left unattended pretty much ...
1
vote
1answer
547 views

imutils VideoStream(src=0) return VIDIOC_QBUF: Invalid argument in raspberry pi

I am only doing a simple code in my Raspberry Pi 4: from imutils.video import VideoStream # initialize the video streams and allow them to warmup print("[INFO] starting cameras...") webcam = ...
7
votes
5answers
15k views

Failed to create MMAL component b'vc.ril.camera': Out of memory

I am trying to run a simple script that listens for a button click and then takes a picture. Once two pictures have been taken it compares the two using OpenCV to calculate the difference. I am ...
0
votes
0answers
23 views

how to improve real-time image processing performance

how are you? I hope you all do well. If someone could help me with an issue I would be very grateful, I am working on my Final Paper on my raspberry pi 3b, and I noticed when run remotly on VNC that ...
0
votes
0answers
46 views

Out of memory error trying to read QR code with Raspberry Pi 3B+

When trying to read a QRcode using the following code: detector = cv2.QRCodeDetector() while True: _, img = cap.read() data, _, _ = detector.detectAndDecode(img) I get this exception ...
0
votes
1answer
40 views

How to dynamically determine objects based on some uniqueness?

As the title states I looking for a way to (detect and then) determine a object within some range. The object will be forklift or "train" in the factory. Main goal is to provide some GUI from which it'...
0
votes
1answer
228 views

Activate Python Script through POST request

I installed and have running the google home + raspberry pi from: http://www.instructables.com/id/Google-Home-Raspberry-Pi-Power-Strip/ I modified the sw1_on.py and sw1_off.py codes to turn on an led ...
1
vote
0answers
29 views

Using gstreamer with openvino opencv in rpi4 without installing gstreamer packages

I am trying to use gstreamer pipeline with openvino opencv-4.1. I don't have the root permission so can't install any packages. So I copied all the needed libs for gstreamer into /usr/local/lib. But ...
1
vote
0answers
56 views

OpenCV cross-compilation fails

I have cross-compiled Qt on my CentOS host for my Raspberry Pi and now I want to cross-compile OpenCV with the following script: CORES=4 IP=192.168.178.52 TEMP_PATH=/home/kampi/OpenCV SYSROOT_PATH=/...
1
vote
0answers
190 views

Issue: Glib-Gobject-warning **: cannot register existing type 'GDKDisplayManager'

I've designed a interface with pyqt and python to my raspberry, so there's no problem when I run a basic test to open the camera ( cv2.imshow('test',frame) this is too basic is just to check if my ...
1
vote
0answers
42 views

How to run “ import serial” and “import cv2” in one python file?

I am actually creating my project wherein I can control my raspberry pi in my pc using FPV Radio Telemetry. The scenario is my pc will send string data like "red" and "blue" to my pi. After my pi ...
1
vote
1answer
31 views

CMake Error in installing opencv on rp4

i use following guide to install opencv https//:learnopencv.com/install-opencv-3-4-4-on-raspberry-pi/ in step5 of guide installation have error ~/opencv/build $ make install out put is ... [ 99%]...
0
votes
1answer
154 views

Unable to locate various OpenCV dependencies

I'm trying to get OpenCV installed on my Pi 3. I'm following the instructions here, and one of the things it says is to install various dependencies. In particular, I'm trying to run: apt-get ...
1
vote
1answer
211 views

OpenCV camera resolution

I am working on a project with OpenCV. It is running on a Raspberry Pi 3 B+. When i start the camera, and do some visual processing the framerate becomes really low and there is a lot of lag. My ...
9
votes
3answers
17k views

ERROR: Environment '/home/pi/.virtualenvs/cv' does not contain an activate script

I am trying to install opencv 4 on my raspberry pi 4 using these instructions from this website but I have come across an error when I run the command mkvirtualenv cv -p python3. The error is found ...
0
votes
1answer
123 views

symbolic link does not work when using it for cv2.so

I followed a tutorial online for installing opencv4 on raspberry pi. Everything works except when trying to create a symbolic link to my cv2.so. It appears to be working but I can only import cv2 ...
2
votes
0answers
186 views

Installing cv2 for python3.7

I've been trying to get opencv to work on my raspberry pi zero w but no matter what I do it doesn't work. I'm using Raspbian Buster Lite (headless) and each time I fail to get opencv to work on the pi ...
0
votes
0answers
13 views

Frames from picamera.capture have different length of pixels

I am trying to both stream a video with a websocket and to detect wether something is moving in the camera video. I have finished successfully the websocket part of my project, and right now I want to ...
0
votes
0answers
216 views

OpenCV - how do you access the raspberry pi camera?

I am trying to access the raspberry pi camera with OpenCV. I found some code that I want to use but I think something is wrong with this code: video_capture = cv2.VideoCapture(-1) because later when I ...
0
votes
0answers
54 views

raspicam slow for real-time usage

I am currently using a raspberry 3 model B and a raspicam version 1.2. I want to use it to detect colour using opencv. I'm taking input using imshow and then using image procesing to obtained the ...

1
2 3 4 5
7