Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
2
votes
1answer
30 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 ...
1
vote
1answer
32 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
0answers
14 views

TFLite detection model not working properly

I have a school project where I need to build an application for detecting plastic bottles and soda cans. I found a bunch of models that detect bottles but they don't detect cans. I trained TFLite ...
1
vote
0answers
33 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
0answers
33 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
1answer
55 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 ...
0
votes
0answers
35 views

NDVI calculation using Pi noir camera

I am an engineering student working on a project based on NDVI calculation to monitor the crop health. I used the PiNoIR camera with blue filter for my experiment in order to obtain the values of NIR ...
1
vote
1answer
71 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
1answer
175 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
1answer
89 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
103 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 ...
1
vote
1answer
90 views

How to execute a Python 3 + OpenCV 4 script @reboot on Raspbian Lite (headless)?

The Python script works perfectly fine when ran from the command line while signed in as the "pi" user, with this command: python3 /home/pi/www/main.py & But from the crontab, it just doesn't ...
0
votes
0answers
45 views

How to create a person or head (not face) detection using open CV that are not too slow when run in Raspberry Pi 3B+?

Hello guys my problem is creating a program that can detect the head(not face) or human detection for my project One of the program that i see is too slow for raspberry pi 3B+ which is this : https:/...
0
votes
0answers
26 views

Low Framerate in video recording using picamera

I am trying to record HD video using Picamera and writing it using OpenCV. But I am unable to get the desired frame rate (10 fps). I recorded the video of 1 minute but the video that was saved was ...
0
votes
1answer
75 views

ImportError:python2.7/dist-packages/RPIO-2.0: undefined symbol: makedev

I have a problem with RPIO. I am running a face recognition using OpenCV python on Raspberry Pi 3B+. pi@raspberrypi:~/facerec-pi/code $ sudo python capture-positives.py Tradeback (most recent ...
0
votes
0answers
196 views

Can't get OpenCV up'n'running in Raspberry Pi, what should I do? (details in the description)

I followed the whole tutorial (https://www.deciphertechnic.com/install-opencv-python-on-raspberry-pi/) line by line, but at the end when I imported the OpenCV library in Python CLI, it gave this error:...
4
votes
2answers
2k views

Raspberry Pi4 Error while using 2 USB cameras, VIDIOC_QBUF: Invalid argument

I'm using Python OpenCV to read from 2 USB webcams on a Raspberry Pi4. If I'm using either of the camera individually they work fine. As soon as I initialize both cameras in the script as following: ...
1
vote
1answer
209 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 = ...
0
votes
2answers
37 views

How to run a raspberry pi program without connected to a desktop screen

I want to be able to run a raspberry pi program without being connected to a desktop screen so the whole idea is to make an object tracking robot using raspberry pi and a camera. This should be able ...
1
vote
0answers
167 views

raspbian cmake erorr when install open cv in rapsberry pi

I want install open cv and when step using cmake I get stucked. here the error CMake Error at CMakeLists.txt:9 (find_package): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this ...
-1
votes
3answers
274 views

Raspberry 4 B not booting from raspberry stretch OS

My new pi boots perfectly from Raspian buster but once the sd card is flashed with stretch os then only red light turns on. I need to install stretch os to work with opencv in C++ using geany editor. ...
0
votes
4answers
744 views

Getting stuck at 100% using make -j4 command while installing open cv on Rasbian buster , Raspberry Pi 4 B+

I followed https://medium.com/@patrick_ryan/building-opencv-4-10-on-raspian-buster-and-raspberry-pi4-64669bd2eb74 to install open-cv on my raspberry pi. On using the make -j4 command it took approx ...
2
votes
1answer
399 views

USB Camera vs Pi Camera

I'm using USB camera for object detection. I can't find code for them because the common blogs or articles are about object detection using pi camera only. Is object detection possible with a USB ...
0
votes
1answer
277 views

how does raspistill/raspivid display video without GUI?

I'm trying to capture video from raspberry pi camera using OpenCV and display it without using gtk or x11. I noticed that raspivid displays camera output without using any window, I wonder if it's ...
2
votes
3answers
1k views

Makefile error at 36% trying to install OpenCV 4 on RaspBerry Pi 4

I've been trying to install OpenCV on my RaspBerry Pi 4 using: cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-"$cvVersion" \ -D ...
0
votes
0answers
266 views

Incorrect buffer length error

I'm trying to do an object detection script and save the results into a csv with tensorflow and opencv. camera = PiCamera() camera.resolution = (IM_WIDTH,IM_HEIGHT) camera.framerate = 10 ...
0
votes
2answers
1k views

Pre-built OpenCV on Raspbian Buster

The hassle of installing OpenCV on Raspbian is something many want to avoid, and the easiest way to do this is to use a prebuilt image. I decided to take this route, only to find most pre-built images ...
1
vote
1answer
120 views

Opencv build fails rpi4

I am trying to build opencv as directed for python3.7, on pi4 (2Gb Ram) with Raspbian Buster Lite, everything goes fine until I try make -j -l 2 After 57% progress I get following error [ 57%] ...
0
votes
0answers
22 views

NoIR camera - Photo and and video frame size looks different

I'm trying to create a feature matching script using NoIR camera. What I'm doing is take a picture using and compare it with the real time video feed. Everything works fine but the the live video ...
2
votes
0answers
116 views

Issue with Raspberry Pi 4 OpenCV

I have been using OpenVINO + NCS2 on a raspberry Pi 3b+ with no issues for an IP camera security application (object detection). I then upgraded to Pi 4 looking for better performances. The object ...
1
vote
1answer
58 views

is the Adafruit read-only script suitable for my project?

I would like to know whether Adafruit's read-only raspi script (described here: https://www.raspberrypi.org/blog/adafruits-read-only/) is suitable for my project. My project is a camera trap that ...
0
votes
0answers
399 views

How to install OpenVINO and open CV 3.4.X on Raspberry Pi 4 Buster

I have been trying to install OpenVINO on a Raspberry Pi 4 with Buster as the OS. I have tried these: https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_raspbian.html ...
0
votes
0answers
8 views

Can I save and open multiple videos with OpenCV or any other module/package/method

So, I have been working on a project which requires me to open an animation/video if the user gives an input of a recognized string mentioned in my code. Basically if the word entered by the user is ...
0
votes
0answers
96 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
52 views

video flickering while streaming with uvc-gadget and g_webcam on raspberry pi 3b+

I am using raspberry pi zero w emulated as a webcam using uvc-gadget. It works plug and play on Nvidia-jetson-nano, or any other pc or laptop. But I see too many choppy frames when I use it with my ...
0
votes
0answers
74 views

Detect fire with pi cam module

I have a python script that uses a usb cam to detect fire with opencv, it worked well until changed to the picamera and now i get this error when i run the code: File "seeFire.py", line 23, in ...
2
votes
1answer
8k views

How can i install OpenCV on Raspberry Pi 4 (Raspbian Buster)?

I have tried many days to install OpenCV on my Raspberry Pi 4 with Raspbian Buster but i couldn't get it done. The installation always works but when importing or using cv2 methods like cv2.imshow(), ...
1
vote
2answers
5k views

Read ip camera stream video on python using opencv3

I installed opencv3 installation link on my raspberrypi 3 and i've tested this, everything is ok, but when i try to read the ipcamera video stream encountered this error self.stream = cv2....
0
votes
0answers
54 views

Structure needs cleaning in raspbian while compiling opencv

Good morning I just want to ask a question about an error message I got all the time is that my system Raspbian said that the structure needs cleaning everytime I started to compile opencv and when ...
2
votes
2answers
2k views

Opencv VideoCapture much faster than PiCamera

I am trying to process frames from my V2 RPI Camera at high framerates and am stuck with the picamera module. The VideoCapture class from OpenCV seems to be much faster than using PiCamera....
3
votes
2answers
280 views

Run the program in the laptop and use the raspberry gpios, PWM to control servos

I'm working with face tracking and I want to activate some servomotors depending the motion of my face. For facetracking I'm using, an usb cam, opencv and dlib. Now results the raspberry can't run my ...
0
votes
0answers
73 views

import dlib fails

I want to use with OpenCV the library dlib, I installed in my virtual environment. I'm sure because with pip list appears: (Thesis_env) pi@raspberrypi:~/Environments $ pip list Package ...
1
vote
0answers
64 views

PiCamera vs VideoCapture

So I have a project that requires Computer Vision (video stream). But when I want to try my Pi Camera (not USB), there's two method that I can use. They are PiCamera.capture_continuous and cv2....
0
votes
0answers
15 views

Install openCV in raspbian using another Linux distro [duplicate]

Good morning I was trying to compile openCV using raspberry 3 and It took me a long time also I had a lot of problems like "Structure need cleaning" (on an installed NOOBS) I just wonder if I can ...
0
votes
0answers
75 views

capturing video stream using piCam

i'm trying to capture the video stream using piCam. but i get this warning and the execution stops this the code: this the code I used: import numpy as np import cv2 cap = cv2.VideoCapture(0) cap....
0
votes
0answers
99 views

How to run a servo motor if a particular condition is satisfied

I have a script of python which is about object detection once a particular class is identified the servo motor should work Iam using object detection using tensorflow and opencv , basically scripts ...
1
vote
0answers
406 views

Getting Error: ImportError: No module named 'cv2' in Geany python editor

I'd finally installed OpenCV 4.1.0-dev in my raspberry pi with success, I checked that in Terminal by : pi@raspberrypi:~ $ python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]...
2
votes
2answers
556 views

How to activate the Python Virtual Environment

I'm trying to install OpenCV in my raspberry (I'm new with it) and I followed this post. I have done all the steps from 0 to 6. All this installation it's done in a virtual environment, but now I ...
0
votes
0answers
315 views

Raspicam Compilation - Cmake error - class_loader is not a catkin_package

My project require Raspi Camera unit and I install dependencies required following guide here Running the script below: sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=...
0
votes
0answers
54 views

How can I distribute my workload among multiple raspberry pi running an OpenCV Application

I have 4 raspberry pis and one picamera. I wish to distribute my OpenCV task among the 4 pis. I haven't been able to find any good resources for how I could this efficiently anywhere. An approach I ...

1 2 3 4 5 7