The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

108 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
831 views

Raspicam has low fps for OpenCV

So far, I've tried these tutorials: 1 & 2. I have also attempted to use this code to test it out, and the fps rate is quite low. It's just 2 -3 fps, which is not as high as when I stream via vlc ...
2
votes
0answers
60 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 ...
2
votes
0answers
83 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: ...
2
votes
0answers
1k views

RPi camera stream to OpenCV in Python

I have been searching everywhere and tested what seems to be everything in order to get OpenCV in python to accept a video stream through gst-launch-1.0 from a RPi camera connected to a RPi. So far, I ...
2
votes
0answers
254 views

How to Stream MJPEG from Pi camera?

I want to make something like Surveillance system from pi camera. How can I do that with Opencv and pi camera ? Can anyone please help me to understand How can I do like this example. I am not a pi ...
2
votes
1answer
210 views

Barcodes: Problem with OpenCV

I'm an absolute beginner with Python, but unfortunately I have to reach in a RPI project within 20 days. My task is to build a Barcode-Scanner. This is the code I want to use: github: loleg/iotcam.py,...
2
votes
0answers
285 views

Latency on a Raspberry Pi camera

I'm making a flight controller and want to stabilize the x-y plane using optical flow, which requires almost instantaneous processing thus requires almost no latency. How much latency does the Pi ...
2
votes
0answers
660 views

Increase FPS PiCam in Multiprocessing

Currently, my system is only producing 10 FPS out of 20, which is my target. I'm barely hit 15 FPS in single grab-and-show simple code like this: from picamera.array import PiRGBArray from picamera ...
2
votes
0answers
3k views

Simplest way to grab camera images from Java

I want to write a software that runs on the JVM (in Scala but you can think Java). I am looking for the simplest way to capture images from the standard camera module (v2). I find the raspstill quite ...
2
votes
0answers
2k views

Corrupt JPEG data: extraneous bytes before marker, OpenCV C++, Raspberry Pi

I am trying to run OpenCV application on Raspberry PI. When video capture from an external camera starts (Logitech C270), the messages below are printed out: Corrupt JPEG data: 1 extemporaneous bytes ...
2
votes
0answers
1k views

Problems in getting two camera feeds via an OpenCV python program

I'm running a Ubuntu 14.04 LTS on my RPi 2. I've OpenCV 2.4.9 installed on it. While running a simple camera capture program works fine. Here is a code for it. import numpy as np import cv2 from ...
2
votes
0answers
714 views

Importing Lepton Thermal Module video feed into OpenCV on Raspberry pi

I'd like to import the video feed that I can capture from a thermal imagery camera I got off sparkfun for a college project of mine. But, I can't seem to get the ./raspberrypi_video into the Video ...
2
votes
0answers
965 views

OpenCV. Can't open video from usb camera on the screen

When I'm trying to start simple code, the frame opens and don't respond. import numpy as np import cv2 cap = cv2.VideoCapture(0) while(True): ret, frame = cap.read() cv2.imshow('AIR',frame) ...
2
votes
0answers
866 views

Is RaspberryPi OpenCV fast enough to run eye blink recognition?

I would like to create application that can recognise eye blink recognition on RaspberryPi with Raspberry Pi Noir camera. Eye blinks are fast, so I will have to process many frames per second. Is ...
1
vote
0answers
41 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
vote
0answers
46 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....
1
vote
0answers
234 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]...
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 ...
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 ...
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 ...
1
vote
0answers
102 views

When I run the face recognition code, I get the following errors

cv2.error: OpenCV(4.0.1-dev) /home/pi/opencv/modules/highgui/src/window.cpp:610: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa ...
1
vote
0answers
164 views

OpenCv compilation on raspberry pi stops at 16%

I was installing OPENCV on raspberry pi and all are done but when the compilation of opencv it stops at 16%.I used make -j4 as well as make -j1.It gives no error and it comes to build folder. This is ...
1
vote
0answers
74 views

Raspberry camera with opencv, measure brightness

I want to build a camera with my Raspi. It should take picture whenever a face is detected. But it should give a warning when the brightness is too low for a good picture. Does anybody know a simlpe ...
1
vote
0answers
770 views

HTTP IP camera not working on Pi but working on Ubuntu

I have a situation, I have two IP cameras one on RTSP and other on HTTP, I am using Python 3.4.2 and OpenCV 3.4.1 on my Raspberry Pi, I am able to read from My webcam and RTSP IP camera, but when I ...
1
vote
0answers
1k views

Cant import cv2 (Model B) Python 3.5

Basically Im very new to linux systems and an, above average in python, I intended to make a program that detect hand gesture (high five , victory one,three etc) , I created my own test code that ...
1
vote
0answers
397 views

How to wrap a H264 stream to a MP4 container

I have successfully streamed an h264 video over the local network with this command. raspivid -o - -t 0 -n -w 1280 -h 720 -vf -vs -fps 30 -b 3500000 | cvlc -vvv stream:///dev/stdin --sout '#rtp{...
1
vote
0answers
602 views

OpenCV and PiCamera problem

I want to get photo from raspberry pi camera in python and i tried this code and it's works for me: for filename in camera.capture_continuous('img.jpg'): test_img = cv2.imread('img.jpg') But ...
1
vote
0answers
180 views

Unable to start capture: Invalid argument

Below code all are work well but when I add a code publish the live stream through dataplicity. There will occur error "Unable to start capture: Invalid argument i: Error grabbing frames". After the ...
1
vote
0answers
280 views

What is the camera matrix for picamera V2.1?

As you know, all cameras have original camera matrix and distortion coefficient values. Is there any guy who had already gotten exact camera matrix of picamera V2.1?
1
vote
0answers
528 views

Managing employees' attendance using Face Recognition

I'm creating an employees' attendance management system using Face recognition on RPi (2 or 3). I use Python face_recognition library for face detecting and recognition. I currently think of two ways ...
1
vote
1answer
2k views

How to access pi camera with OpenCV to Laptop?

I do not have HDMI supported monitor for Raspberry pi 3. I want to use OpenCV with my pi camera for image processing and access those images and videos with OpenCV image output to my LAPTOP, which is ...
1
vote
0answers
334 views

opencv workon cv doesn't work

I installed opencv on my Pi zero via SSH. And now, if I digit workon cv via SSH it works. But if I digit workon cv in a graphical session (vncserver) terminal, bash responds: no command found.. ...
1
vote
0answers
2k views

OpenCV VideoWriter and Hardware h264

I'm working on a python/pygame application, and i'm facing some difficulties when I try to capture a video from a usb camera (640x480) to a h264 encoded file, through OpenCV. Everything work fine with ...
1
vote
0answers
947 views

White Balance Drift off from Pi Camera

I'm currently trying to develop image tracking using color in Python 3 and OpenCV. But i am facing problem in PiCamera. At the moment, i've done some method to fix white balance, shutter speed, and ...
1
vote
0answers
845 views

How can I get the raspberry Pi camera working with c++ on OpenCV 3.2?

I was pleased to read about the addition of ARM support in the Opencv 3 change log, and decided to try installing OpenCV3.2 on my raspberry Pi. The installation appears to have been a success, and ...
1
vote
0answers
329 views

OpenCV without display

I am running OpenCV on my Raspberry Pi 2. I want to use the GPIO instead of the display as an output indicator. However OpenCV will not run without a display. Is there a way to fool the Raspberry Pi ...
1
vote
0answers
26 views

recording 2 videos of 2 different pictures

I'm using raspberry pi with python and I'm trying to record a video of : regular video stream a picture from that stream that showes a circle identification (using hough transform ) cv2.circle =...
1
vote
0answers
613 views

Optimization of picamera frame decoding for opencv processing

I am useing next code for frame capture: from picamera import PiCamera import utils res = (1600,1600) camera = PiCamera(resolution = res) camera.resolution = res camera.raw_format = 'rgb' camera....
1
vote
1answer
521 views

sudo pip install packagename not working

sudo pip install packagename not working... I am not able to install python package using pip.
1
vote
0answers
244 views

Using Raspberry Pi 2 B with Pan Tilt and OpenCV 3.0.0 for the 1st Time

I am very new to Raspberry Pi, and This is my first time using it. I have read a lot from the documentation on the official website, and I really got great things. After that I installed OpenCV 3 with ...
1
vote
0answers
154 views

Raspberry pi execution time calculated is different on the desktop terminal and command line?

Boot to desktop and boot to command line can be chosen using raspi-config. I decided to do a test to see whether my code will execute faster using the command line interface. How come the raspberry ...
1
vote
0answers
465 views

Unmount USB Camera

I'm working in a Python app with opencv and a USB camera. Sometimes the camera driver throws an exception: OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /home/pi/opencv-2....
1
vote
0answers
475 views

Trying to render image from grayscale camera with OpenCV in C++. Hangs after a few frames

have a grayscale camera (NOT COLOR) and am trying to render the image. I am running on Raspbian, on a Raspberry Pi 2. I've grabbed some code and bared it to a minimum and made some progress: #include ...
1
vote
0answers
684 views

Multiple webcams - cannot open in openCV & corrupted image

I've connected four USB webcams via well powered USB hub to RasPi2. I want to use them in openCV. So I setup a simple program, where I opened the cameras using cvCaptureFromCAM, captured a cv::Mat and ...
1
vote
0answers
98 views

2 scripts need every frame from NOIR camera board at same time

I have two opencv2/Python scripts running at the same time on the same Raspberry PI. A streaming server script based on this, that outputs a live camera feed to the web a motion detection script, ...
1
vote
0answers
330 views

Webcam doesn't work on Raspberry Pi VIDIOC-QUERYMENU: Invalid Argument

So I wrote an image processing program in Python on my windows computer and it works fine there, but when I try to run it on the Raspberry Pi I get VIDIOC-QUERYMENU: Invalid Argument a bunch of times. ...
1
vote
0answers
754 views

RPi2 Or ODROID-C1 for better OpenCV performance?

I am planning for a project requiring face recognition using OpenCV and got confused between two boards at same price - the Raspberry Pi 2 and ODROID-C1. My question is which board is more suitable (...
1
vote
0answers
2k views

How do I increase the speed of my Python OpenCV program?

Specs: RPi 2, not overclocked, did rpi-upgrade, using ssh to run vnc on laptop. I've got a face tracking algorithm that is working fine on the Pi (and my PC). Problem is it has a lag of about 2 ...
1
vote
0answers
5k views

H264 IP camera stream by Raspberry Pi 2 with OpenCV and GStreamer: Gstreamer unable to start pipeline

I'm trying to get working OpenCV with GStreamer to get IP camera rtsp stream. But it is giving error which is (with opencv-master branch, Gstreamer 1.2.4, Raspbian 3.18.7-v7+: GStreamer Plugin: ...
1
vote
0answers
467 views

Raspberry Pi + Qt4 + Opencv cross compile from windows

Hi I want to know how to use opencv in raspberry pi. I have cross compiled qt raspberry from windows and succeed but I cannot add library opencv.