Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
0
votes
2answers
33 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 ...
1
vote
0answers
31 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
0answers
19 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 ...
1
vote
2answers
31 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
0answers
15 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 ...
1
vote
0answers
29 views

error: (-215:Assertion failed) !empty() [closed]

I'm trying to run a python code that's associated with using OpenCV library. I'm also a mere beginner. I'll show you the code and the error it gets when executed. Any comment will highly be ...
0
votes
1answer
45 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
1answer
162 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
0answers
9 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
1answer
14 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
1answer
21 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
0answers
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
0answers
36 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. ...
1
vote
1answer
47 views

sudo make install error [closed]

I'm fairly new to Raspbian and raspberry pi 3 is in my hands. I'm following along a book in which I have to install some packages of OpenCV. My project is related to Machine/Deep learning. My code is ...
0
votes
1answer
22 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
0answers
10 views

Modifying frames that I'm streaming

I'm currently trying to capture a video stream with picamera, apply a function I've made using OpenCV to detect something on each frame then stream it to the network. Currently, I'm using the code ...
0
votes
0answers
47 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 ...
0
votes
1answer
33 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
1answer
25 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
0answers
30 views

pyqt5 and opencv refuses to work together

On my raspberry pi when i try to launch my python script. import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5 import uic, QtGui import numpy as np import cv2 taker = False ...
0
votes
0answers
98 views

raspberry pi hq camera cant set iso or gain in opencv

in opencv i am trying to set the gain or iso. but when i do these things i notice no difference. import cv2 #Capture video from webcam cap = cv2.VideoCapture(0) cap.set(cv2.CAP_PROP_AUTO_EXPOSURE, 1) ...
0
votes
1answer
78 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
1answer
97 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
1answer
1k 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
0answers
41 views

opencv stream resolution vs picamera resolution

I have the picamera v2 with me and i want to use it because of its 8MP resolution. ive noticed that theres two ways of live streaming my camera on python. One is using the picamera's inbuilt preview ...
0
votes
0answers
15 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
0answers
11 views

Opencv is only showing first image rather than showing live continuous images

I am trying to run a live pedestrian tracking code with HOG and opencv on a raspicam. Whenever I run it, it takes about 20 seconds before the image frame appears and it only shows the first image it ...
0
votes
1answer
87 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
1answer
52 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
2answers
70 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
0answers
127 views

Error - running openCV on RaspberryPi4 via Putty

I am newbie and just found out some weird error. import cv2 cap = cv2.VideoCapture() # The device number might be 0 or 1 depending on the device and the webcam cap.open(0, cv2....
0
votes
2answers
38 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
0answers
28 views

Best Solution for multiple camera input and processing

I'm working on a project for a car modification. The main idea is multiple cameras all around the car (not 360° view since i won't be doing any image linking, nor calibration, each camera is pointed ...
0
votes
0answers
138 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
1answer
152 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: ...
0
votes
1answer
74 views

Raspberry Pi 3 OpenCV Compilation Error at 34%

I am trying to install OpenCV-3.1.0. I am following this tutorial: https://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/ I was on Step #4: Compile and install OpenCV ...
1
vote
1answer
209 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
1answer
123 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
1k 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
0answers
199 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
0answers
336 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
45 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
466 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
0answers
208 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
45 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
0answers
83 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
2answers
2k 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
0answers
141 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
411 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 ...
3
votes
3answers
9k 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
2 3 4 5
8