Questions tagged [opencv]
Open Source Computer Vision Library, real time computer vision
379
questions
1
vote
1
answer
48
views
Can a raspberry pi get the video feed of another through a NFS server between the two?
For my project, I need to get the feed (preferably simultaneousely) of 2 pi cameras (one on each pi 4).
As of now, both are communicating through ssh over wifi. It's very slow, not reliable and very ...
-2
votes
0
answers
30
views
Can I change this code for an older OpenCV and get it working on OpenCV 4.5.5
Edit: Of course it was panic that drove me to post, where reading the code would have led me futher. I was missing the actual models required for recognition. Apologies if you took the time to post. ...
0
votes
1
answer
53
views
reading two webcams in opencv
If I run this code on a PC with two webcams attached it runs fast (or fast enough) without any issues:
import cv2
cap0 = cv2.VideoCapture(0)
cap1 = cv2.VideoCapture(1)
while True:
ret0, img0 = ...
0
votes
0
answers
52
views
Problem using OpenCV and Raspberry PI camera V2
I had been using the following code for the past two months with no problem whatsoever, however, just yesterday I have been getting errors using the code which I will detail as follows. The code in ...
0
votes
0
answers
21
views
Raspberry Pi 3b+ freezes when building opencv-4.5.2
When i apply make -j1 at ~/opencv-4.5.2/build folder, raspberry pi is freezing at 85% of building.
So I changed swap size at sudo nano /etc/dphys-swapfile
CONF_SWAPSIZE=100 changed to CONF_SWAPSIZE=...
0
votes
0
answers
18
views
Code works in Windows but not Raspberry pi (opencv)
I'm new to coding and using a raspberry pi. I've searched through many tutorials online and found a how to get OpenCV library into the pi itself and downloaded VSC on my laptop and the pi. The issue ...
-1
votes
1
answer
30
views
Rainbow screen on boot when camera plugged in
I bought my Rpi 4B, 4 months ago with an official Pi camera v2.1.
Everything was working fine but now, I can't seem to receive frames with openCvpython library.
import cv2
cap = cv2.VideoCapture(0)
...
0
votes
0
answers
36
views
How to use Arducam's camera & opencv for live inference?
I have a pi 4 model B and using this camera, after setting everything up I tried to capture some images with opencv but failed, most "casual" guides assume that I use either a pi camera ...
0
votes
0
answers
48
views
RPI USB Camera stops sending images, times out, and fails to work
TL;DR - My camera on my Pi stops working all together after an hour-ish. Any ideas why would be a big help.
I'm running a camera on my RPI which times out after a while and even if I try to do a USB ...
0
votes
1
answer
37
views
Segmentation fault running Python/C++ OpenCV executables (package DVR-Scan)
I use DVR-Scan 1.0.1 [1] for video surveillance (scan video files got from an IP camera) under a Raspbian GNU/Linux 8.0 (jessie) system on a Raspberry Pi 3 model B. DVR-Scan depends on Python and ...
0
votes
1
answer
30
views
receiving RTP stream on RPi
Need to receive RTP stream with lowest possible latency and CPU load. I need to always read the latest frame, that is, as if I had a buffer equal to 1. What is the best way? I need it to be possible ...
0
votes
0
answers
41
views
Random disconnection of an USB Camera with Raspberry Pi 4
I've got a Raspberry Pi 4 with an USB2.0 camera connected through a slip ring. When I boot, there's no problem at all, but sometimes the Raspberry is unable to detect the camera while streaming (I'm ...
0
votes
1
answer
42
views
Viewing the captured content of the webcam live
How can I view the captured content of my webcam on Linux/Raspberry?
I dont want to share it, only view the content live on my monitor.
On windows Logitech has an official program where I can preview ...
0
votes
0
answers
21
views
Regular webcam vs Camera Module V2?
I have Raspberry v2.
I would like to enlarge the screen of a Liquid-crystal display, like this:
The camera would stay in a fix position recording the screen and display it on a monitor bigger.
It ...
0
votes
0
answers
72
views
Gstreamer OpenCv on Mac to Raspberry Pi
I am working on a VR display using a Raspberry Pi. After thorough testing, I have determined the Pi is not powerful enough to do the processing I need locally, so I have turned to Gstreamer. I want to ...
0
votes
2
answers
420
views
WARN:0 global /tmp/pip-wheel-2c57.../opencv/.../cap_v4l.cpp (890) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
When switching from the legacy camera stack under Raspberry Pi OS with debian 10 to the new libcamera camera stack (in Raspberry Pi OS with debian 11 it is standard), I cannot use OpenCV any longer.
...
0
votes
0
answers
18
views
How to Capture Only Subimage from Rasperry Pi Camera?
I am new to OpenCV and Raspberry Pi. I want to increase the frame rate on the camera (preferably > 300 fps), but I don't need the full image. Instead of sending back the full azimuth and elevation ...
0
votes
1
answer
318
views
how to increase fps of yolov3 on raspberry pi 4
I'm currently doing real time object detection with the help of pi camera using pre-defined weights of darknet and coco dataset using openCV. Currently I'm getting 0.14 fps and my video is too much ...
1
vote
0
answers
29
views
Green frames when capturing webcam
We use RPI4 for automation. One of our use-cases is to capture image frames via webcam/HDMI grabber as fast as possible and do some analytics. We use python and opencv for capturing, but it's not ...
0
votes
1
answer
169
views
ImportError: librsvg-2.so.2: cannot open shared object file: No such file or directory
I am having issues with the rsvg2 library which is a dependency of ffmpeg and opencv.
I have installed ffmpeg using the standard sudo apt install ffmpeg and Python-opencv with pip install opencv-...
-1
votes
2
answers
60
views
compile a c++ app on ubuntu and run it on raspberry pi
I'm on an opencv project that need to be deployed on rpi 4. I do prefer to reach this project development, testing a compiling on other device (lets say a labtop).
My question which OS is compatible ...
0
votes
0
answers
53
views
USB Camera on Raspberry Pi
I'm trying to run a USB camera on my Pi, but haven't found any ways to take a still image on it using Python. Has anyone seen any projects where a still image is taken on a USB cam? I am looking to ...
0
votes
0
answers
118
views
Can't get 1080p30 / 720p60 from pi camera with OpenCV
I'm new to raspberry and raspberry pi camera.
I'm using OpenCV and pi for a project;
Using OpenCV and python, I want to get a high resolution video feed to process.
On the official web page, it says ...
0
votes
2
answers
577
views
Error for installing the OpenCV on raspberry (Command "python setup.py egg_info" failed ...)
Based of this post, I have tried to install the below package at first step:
sudo apt-get update && sudo apt-get upgrade
sudo apt install cmake pkg-config build-essential git
sudo apt install ...
0
votes
0
answers
22
views
Cmake : interpreter and numpy virtual environment path problem
I am trying to install OpenCV 4 on a Raspberry pi b+ flowing this Article , Everything looks good until i come to Step #5 the outputs of cmake are different, even though i followed the previous steps ...
0
votes
1
answer
214
views
build opencv for java on rpi4
I'm trying to build OpencCV for Java on raspberry pi 4B. I am quite new in this sphere and do not understand almost everything. At first, I just wanted to unload my .jar file to the raspberry and run ...
0
votes
1
answer
3k
views
CMake Error: The source directory "/home/pi" does not appear to contain CMakeLists.txt [closed]
Can someone please tell me what I have to? I'm trying to setup my build using CMake. My code and its' error is the following. How do I make CMakeLists?
(cv) pi@raspberrypi:~/build $ cmake -D ...
0
votes
0
answers
21
views
Problem in installing OpenCV
I'm trying to use the OpenCV library.
Here is a piece of code that threw the same error for way too long.
I'm following along a tutorial book written in Japanese and the section I'm working on at the ...
-1
votes
1
answer
41
views
OpenCV not working when ran with sudo
I have an application that uses OpenCV, and now want it to also access GPIO pins, so it needs to run as sudo. So, I tried to run it using "sudo python3 myapp.py"
When I do I get the ...
0
votes
1
answer
63
views
OpenCV can't capture frames on production server (Nginx + uWSGI) on Raspberry Pi 4
I'm building a production server on Raspberry Pi 4. Web app is written in Django. I used uWSGI as an application server and Nginx as a reverse proxy. I followed many tips from Digital Ocean.
One of ...
0
votes
0
answers
30
views
Calculate the motion of a simple object in 3d
I'm a beginner in python and raspberry pi and for a school project which is due this month, we're using a raspberry pi 3 and a camera module (fixed) and the idea is when u move something in the camera ...
0
votes
0
answers
195
views
OpenCV libgtk2.0-dev and pkg-confif Error in Raspbian Buster
History,
I have been running OpenCV on Raspbian Stretch in a virtual environment for a couple of years.
Due to the requirement to add functionality for a PS4 controller I switched to Raspbian Buster.
...
0
votes
1
answer
91
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
308
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
99
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
47
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
188
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
168
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
4k
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
31
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
231
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
87
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
402
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
68
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
251
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
237
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
574
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
1
answer
228
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
289
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:
...