Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

3
votes
0answers
224 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 ...
3
votes
0answers
800 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
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
209 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
0answers
524 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
2k 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
1k 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
699 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
895 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
823 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
61 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
39 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
293 views

opencv cv2.imshow doesn't work

I'm working a project that getting a video from usb camera on raspi for encode qr code. So I wanna display the current frame, but i am getting this error: <cv2.imshow('Current', frame) error:/...
1
vote
0answers
724 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
260 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
434 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
147 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
184 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
407 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
0answers
260 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
1k 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
632 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
760 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
269 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
505 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
0answers
206 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
136 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
390 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
426 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
622 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
282 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
743 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
1k 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
449 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.
1
vote
0answers
554 views

opencv and cv2.so/libcv2.so setup for python

I installed opencv 2.4.8 on my raspberry-pi. But i am not able to locate cv2.so /libcv2.so so that whenever i import i get error as cv2 not found. Is there a way to download theese packages to use in ...
1
vote
0answers
1k views

Installing openCV on raspberry pi for video detection error avformat.h not found

I want to install opencv on the raspberry pi for image detection on a video I have followed this tutorial but the videos are not to be played or proccessd. I tried to install it again to make sure ...
0
votes
0answers
42 views

Executing a opencv python2 script from SSH Putty console

I try to execute a python2 script which is supposed to display a movie file. When I execute this code with VNC it works, I can see the movie being played (eventhough the fps is limitted around 2...) ...
0
votes
0answers
261 views

Problem with Pi Cam / Python / opencv: “Incorrect buffer length for resolution 640x480”

I want to build an animal counter based on pi zero w, pi cam, python and opencv. I read some tutorials (especially from https://www.pyimagesearch.com) how to setup all that stuff and in principle ...
0
votes
0answers
374 views

OpenCV : Gtk-WARNING **: cannot open display:

I got a python script supposed to load a video. My Pi set up in headless mode and I would like not to use any X server for displaying the video but instead having the video displayed to the hdmi port....
0
votes
0answers
450 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 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 ...
0
votes
0answers
368 views

Raspberry pi 3 B connection with wireless IP camera through RTSP (Wifi)

i'm using python=3.5 and OpenCV 3.1.4 to establish a connection with my IP camera via RTSP protocol and by using wifi on Raspberry Pi 3 B here's my code import cv2 from imutils.video import ...
0
votes
0answers
301 views

How to improve face detection's performance and image quality using the NoIR camera?

I'm building something similar to a timelapse project where I'd like to be able to continuously detect faces and then align, scale and crop them before saving. I'm interested in having high quality ...
0
votes
0answers
204 views

Webcam feed is very slow

I'm using this code to calibrate stereo vision using two Logitech c270 webcams and Raspberry pi 3 model B. My problem is webcam feeds shown by openCV are very slow and even not responding sometimes. ...
0
votes
0answers
319 views

Gstreamer error qt / opencv project

After making project on Rpi I receive this error after calling VideoCapture c(0) (I think...) Am I referencing the Pi NoIR camera incorrectly? Or am I missing or have I incorrectly installed ...
0
votes
0answers
761 views

Stream Pi Camera to Server - webRTC

I have setup a raspberry pi to stream an h264 video feed from a pi cam to a remote host using Red5 Pro. I then use openCV cv::VideoCapture to read the stream and process it. Im currently using RTMP ...
0
votes
0answers
330 views

Combining Opencv and Tkinter

I am new to python and I am stuck with this problem. I want to create a window that would have an entry box for threshold, which would then be used to make a binary image from camera. The binary image ...
0
votes
0answers
549 views

Error installing opencv on RPi2

I am trying to install OpenCV 3.0.0 on RPi2 with raspbian Stretch. When I run the following cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D ...