Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
-2
votes
0answers
45 views

How do I do this on Raspberry Pi 4? [closed]

I have been following this tutorial to train my own haar cascade: https://pythonprogramming.net/haar-cascade-object-detection-python-opencv-tutorial/ However, when it tells me to enter commands like ...
0
votes
0answers
14 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
24 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
25 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
14 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
1answer
23 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 ...
0
votes
0answers
19 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
32 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
1answer
159 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
40 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
24 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
61 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
66 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
1answer
68 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
118 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
46 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
1answer
61 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
0answers
108 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 ...
1
vote
1answer
47 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
1answer
752 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
1answer
94 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 ...
6
votes
3answers
11k 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
1answer
35 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
55 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
30 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
45 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
38 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
223 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
109 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
82 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
646 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
180 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
260 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
242 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
50 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
56 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
129 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
339 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
3k 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
411 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
38 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
265 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
388 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
1k 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
590 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
460 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
2k 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
474 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
2k 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
2 3 4 5
7