Questions tagged [opencv]
Open Source Computer Vision Library, real time computer vision
397
questions
0
votes
1
answer
680
views
PiCamera V2 NoIR and AMG8833 thermal sensor mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
Hardware used: Raspberry pi 4b, 4 gb ram, AMG8833 thermal camera, PiCamera V2 noir, ALL brand new, i just bought them few weeks ago.
Im trying to do finish a project and i ran into a not that good ...
0
votes
0
answers
718
views
OpenCV image processing incredibly slow on Pi 3B+
I have a computer vision algorithm on my Pi 3B+ that uses the following function, myVision(), that takes in a frame and outputs the pixel coordinates of a certain colored dot (tuned according to the ...
1
vote
1
answer
153
views
HQ Camera V4L2 - bad set of scene mode causes camera controls to become unresponsive
I have been playing with these cameras for some time using opencv/raspicam to control the camera. The raspicam/opencv interface allows setting the gain, this is dubious because there is no manual set ...
0
votes
1
answer
197
views
OpenCV setting resolution results failing in reading frames
I've tried to change the resolution on raspicam v2 with my raspberry pi 4 b, but this code gives me false every time I try to read frame... Is there anything I am missing? I can easily read frames ...
0
votes
1
answer
379
views
Distorted Images from Raspberry Pi Camera Ubuntu 20.04
Hardware:
Raspberry Pi 4 Model B
Ubuntu 20.04 64-bit
Raspberry Pi Camera V2.1
I'm using OpenCV's VideoCapture to capture images using the Raspberry Pi camera module, as the picamera module isn't ...
2
votes
1
answer
319
views
Rpi CPU HW features baseline
I am trying to install opencv 3.4.12 in rpi4.
AFAIK, Enabling Neon flag can accelerate the performance.
But in cmake output I observe that Neon feature is not detected as CPU/HW feature.
(cmake ouput ...
0
votes
1
answer
8k
views
OpenCV VideoCapture not working with GStreamer plugin
Running the following code on my raspberry pi 4b with the camera v2 and OpenCV installed via pip install opencv-python I have no issues:
import cv2
cam = cv2.VideoCapture(0)
cam.isOpened() # True
...
0
votes
0
answers
91
views
ORB object tracking on Raspberry pi
I am new to Rasberry Pi and OpenCV
but I got a project to make a target detection tool using ORB from openCV with raspberry pi
I'm using the Raspberry Pi 3 Model B and the Raspberry Pi Camera V2 8MP
...
0
votes
1
answer
769
views
Overlay text on playing video
I am working on the following project:
I want a video playing on a raspberry pi continuously in a loop.
Whenever I press a button on the gpio, i want a text to be overlayed on the video for 5 seconds ...
0
votes
1
answer
168
views
Face recogniton automatic picture in code
I'm trying to setup face recognition with opencv/python on raspbian with the code i placed here. But i actually would like that in the code it automatically takes a picture of someone when the system ...
0
votes
2
answers
977
views
Does terminating ssh connection, terminates the installation process too?
I’m running a raspberry pi 3b headless, thus I ssh into rpi from Mac terminal through Ethernet cable ip.
I’m currently installing opencv but the terminal kinda not giving any response. If I close the ...
0
votes
2
answers
345
views
Servo is jittery and moves back and forth when it should be still
(Sorry about formatting) I am trying to write an opencv program to track the color red. So far it works okay, but the servo is jittery and when the object is still and centre the servo moves back and ...
0
votes
0
answers
400
views
Trying to interface OmniVision OV4689 with Raspberry Pi
I need to capture pictures on a Raspberry Pi (I'm using a Compute Module 3+) using a camera based on the OmniVision OV4689 image sensor.
The datasheet for this image sensor can be found here https://...
0
votes
1
answer
475
views
Installing OpenCV fails for missing header files
I am trying to install opencv 3.0.0 on my raspberry pi 2b but I keep running into erros... currently, it complains about the following missing header files when I run the following cmake command:
...
1
vote
1
answer
1k
views
How to stream video from Raspberry Pi camera module as http not RTSP?
How to stream video from Raspberry Pi camera module as http not rtsp? I use this command to stream as rtsp but i need http because of OpenCV. raspivid -o - -t 0 -rot 180 -w 1920 -h 1080 -fps 30 -b ...
1
vote
2
answers
595
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
4
answers
2k
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 ...
1
vote
0
answers
365
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
0
answers
579
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
0
answers
87
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
0
answers
745
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
0
answers
367
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
2
answers
85
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.
...
1
vote
0
answers
147
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 ...
0
votes
2
answers
4k
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 ...
2
votes
0
answers
302
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=/...
2
votes
0
answers
1k
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 ...
5
votes
3
answers
15k
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
0
answers
181
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
1
answer
308
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
1
answer
2k
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
1
answer
5k
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 ...
0
votes
1
answer
915
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
0
answers
739
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
0
answers
123
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
vote
1
answer
2k
views
What resolutions can I use for the Raspberry PI camera 2? And how can you tell?
I'm working on a project with Raspberry Pi 3 and camera module v2.
I'm using OpenCV and raspicam.
I want to know the maximum resolution I can use. The datasheet says 3280*2464, but I get errors when ...
0
votes
0
answers
2k
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 ...
2
votes
1
answer
559
views
Activation of Multiple Webcams Simultaneously for Video Recording (Logitech C270)
I needed two cameras for a project requirement. To test the working of the tow cameras together I wrote a short that goes as follows:
{
import cv2,os
import numpy as np
webcam = cv2....
1
vote
1
answer
3k
views
opencv not working on Python3
I have installed OpenCv on my Raspberry pi Model 3B.
It is working for python 2.7 but not for python 3
The error im getting is:
pi@raspberrypi:~ $ python3
Python 3.7.3 (default, Dec 20 2019, 18:57:...
1
vote
1
answer
278
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
...
10
votes
3
answers
20k
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 ...
2
votes
1
answer
65
views
apt-get update - trying to install python OpenCV on rasp pi?
$ apt-get update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking ...
2
votes
1
answer
1k
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.
...
1
vote
0
answers
167
views
Object detection on Raspberry Pi 4B causes it to crash and reboot
I am trying to do object detection with openCV on images already saved on my raspberry pi's file system, but the system reboots when I run the following python script:
import cv2 as cv
import ...
0
votes
0
answers
103
views
OpenCV2 ---> OpenCV4
I have been working on a project from github, https://github.com/twilio/wireless-security-camera, that utilizes OpenCV. Now I haven't played much with OpenCV so this is trial and error on my part. ...
1
vote
1
answer
2k
views
OpenCV Gstreamer pipeline doesn't work on Pi 4 Buster
I'm studying about object tracking and detecting in Gazebo Simulation. So, I'm trying to send Simulation video(Gst Plugin) to Raspberry Pi 4 via ethernet cable over UDP stream. And Pi 4 side, catch ...
1
vote
1
answer
122
views
Raspberry Pi Security Camera and Twilio
So I am working on a 4G enabled security camera. While I know there is several options to choose from I was kind of intrigued by the Twilio Security Camera Blueprint, https://www.twilio.com/wireless/...
1
vote
1
answer
6k
views
Raspberry pi line follower using camera
I want to create a two-wheeled line following robot. I want to use the camera to detect a black line for the car to follow.
I have programmed the wheels so now I need to work on the line detection. I ...
2
votes
1
answer
791
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
1
answer
714
views
Cannot install OpenCV on Raspberry Pi 2
I've tried following this tutorial: https://www.learnopencv.com/install-opencv-4-on-raspberry-pi/
I installed a fresh copy of Raspbian Buster on the Raspberry Pi 2 before following the tutorial.
It ...