Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
0
votes
0answers
22 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 ...
-2
votes
3answers
43 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. ...
1
vote
3answers
46 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
56 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
39 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
106 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
22 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
243 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
71 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
19 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 ...
1
vote
0answers
41 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
39 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
153 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
54 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
27 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
31 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
4k 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
520 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
44 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
1answer
221 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
125 views

Run the program in the laptop and use the raspberry gpios

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
27 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
39 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
13 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
48 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
57 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
157 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
238 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
151 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
40 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 ...
0
votes
0answers
199 views

illegal instruction when importing opencv in python 3.5

illegal instruction when importing opencv into python compiled opencv3 for python 3 by using these commands $ cd ~/opencv-3.3.0/ $ mkdir build $ cd build $ cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D ...
0
votes
0answers
663 views

Installing dlib on raspberry pi3

I've been trying to install dlib on my raspberry pi 3 since past 2 days, but every time end up with a frozen screen. The pi is running on the latest raspbian and and everything seems like up-to-date, ...
0
votes
0answers
32 views

Using raspvid to stream to PC, I can see data on PC received but how to work with in openCV?

I am using PiCamera on my PI. I am executing this command on the PI: raspivid -n -t 0 -w 640 -h 480 -fps 30 -o - | nc 192.168.0.12 5000 On my computer (windows), executing this command: nc -l -p ...
0
votes
0answers
65 views

5 images(jpeg) per second OpenCV from purethermal 2 [duplicate]

Is it possible to capture 5 jpeg images per second from a purethermal 2 stream with opencv or another way on a raspberry pi for a set amount of time? If so how? (I have a FLIR lepton 3.5 on the ...
1
vote
0answers
73 views

How to 'source ~/.profile' and activate virtual environment and run python script from a .sh file

I am working on my project and using a raspberry pi 3B+ with raspbian OS. I followed the following link to pip install open cv on my pi using a virtual environment I named 'cv' and it works fine: ...
1
vote
1answer
518 views

How to cross compile OpenCV for the Raspberry PI Zero?

Hi so I've got a camera module for my Pi Zero and wanted to play around with OpenCV and Python. Looking around google, if found a few guides to get OpenCV to a Raspberry but most included to either ...
1
vote
0answers
33 views

How to connect/link two raspberry pies for video precessing?

i am fairly new to raspberry pi platform so this question may be too basic. I am working on a project where i need at least 2 camera modules for simultaneous video recording and processing and taking ...
0
votes
0answers
49 views

Rpi 3b opencv lines of code not registering

I recently installed opencv ans tried to run a simple process some of the commands won't read such as cv2.imshow() or cv2.imread () along with the waitkey() everything else works fine but a few ...
1
vote
1answer
30 views

OpenCV installation error

I've followed this installation guide but on the last part where it says: Revert back the swap size to its original value of 100MB by editing the /etc/dphys-swapfile. And, restart the service by ...
2
votes
1answer
1k views

How to install OpenCV on Raspbian Stretch?

The directions for Raspbian Jessie fail with Error 2: ... [ 43%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_imgproc_tests_cpu.cpp.o c++: internal compiler error: ...
1
vote
1answer
69 views

Serial comms & USB camera in parallel/threaded?

My project is currently using OpenCV to controll a pair of motors via hardware PWM (am using the pigpio library for GPIO control). The video input is from a USB webcam. I would like to add some ...
0
votes
1answer
58 views

How to transmit hand gesture data from a laptop to Raspberry-pi

I am making a hand gesture bot. In this hand gestures are detected from a laptop using image processing (used OpenCV & Python). I don't know how to transmit real-time output wirelessly of image ...
2
votes
2answers
142 views

Would ZRAM be helpful for running OpenCV?

I'm doing some OpenCV development on a Raspberry Pi 3, and I have found some information about using ZRAM on the Pi to try and boost its processing effectiveness. I know this isn't actually adding ...
1
vote
0answers
155 views

Error unknown machine command despite compiling without errors

I recently made a project using opencv 4 on my raspberry pi 3 b+, but then decided to port the whole project to a new raspberry pi zero, as I want to make it a permanent setup and want to keep my py 3 ...
0
votes
0answers
126 views

RPi camera OCR,and save output in variable (pyhton with tesseract)

I want to make a python code for the raspberry pi, with the tesseract OCR engine, that it keeps reading text from the camera in realtime, saves in a variable, and sends output to Arduino. Is there a ...
0
votes
1answer
63 views

Dependencies problem installing mmrcn

Hello i am trying to use ML techniques to identify cars in an image using opencv. I have been following this tutorial : https://medium.com/@ageitgey/snagging-parking-spaces-with-mask-r-cnn-and-python-...
0
votes
0answers
23 views

OpenCV 3.3.0 issue

Hey when i am running code i got this annoying error #!/usr/bin/env python import numpy as np import cv2 as cv import os from pantilthat import * os.system('sudo modprobe bcm2835-v4l2') cascade = ...
0
votes
0answers
21 views

Using Cakephp running python tensorflow

The program is work in Raspberry Pi using Rasbian Stretch. I have python script with TensorFlow object detection. Now I am using CakePHP to implement the website. In the CakePHP, I want to run the ...
2
votes
1answer
1k views

how to increase fps for raspberry pi for object detection

I'm having low fps for real-time object detection on my raspberry pi I trained the yolo-darkflow object detection on my own data set using my laptop running windows 10. When I tested the model for ...