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 ...
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 ...
0
votes
1answer
535 views

Install OpenCV faster - could it be transferred via a SD card?

I installed OpenCV on my RPI 3, now I have the new RPI zero W, since I know installing OpenCV (let's say 3.0.0) takes a very long time, I wondered if I could somehow transfer my already downloaded (...
6
votes
1answer
3k views

Capture video for a certain time then quit and save to a folder using OpenCV 3

I am using this sample code from the OpenCV documentation and what the code is simply doing is capturing a video and when it's interrupted it saves it to a folder. What I want to do it capture the ...
1
vote
1answer
902 views

How to install python aruco module on raspberry pi 3?

I am trying to use OpenCV aruco libraries using python 2.7. I have OpenCV 3.2 installed on my raspberry pi 3. The problem is I am neither able to import aruco module in my python code nor use it via ...
-1
votes
1answer
255 views

Unable to capture faces “y is not defined”

I tried removing gray[y:y+h,x:x+w] in imwrite line and the code works amazing but as soon as I add this [y:y+h,x:x+w] it says: y is not defined. I just don't understand how can this error message!!! ...
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 ...
2
votes
1answer
281 views

Why do I have to cmake opencv?

Places with tutorials to make my RPi run OpenCV and start pattern recognition include the part where I have to be Building OpenCV. http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-...
0
votes
1answer
441 views

No OpenCV script working on Raspberry Pi 3

I had written few python scripts on Windows using opencv 3.2.0 and python 2.7.13. I, then, installed the same version of opencv on my R-Pi, and tried running the very same scripts on it, but none of ...
0
votes
2answers
5k views

PIP: Requirement already satisfied: imutils

I am trying to run a home surveillance program using rasp pi 3 model b i have done: sudo apt-get install python-pip python-opencv successfully but somehow stuck below: root@raspberrypi:/home/pi/...
0
votes
1answer
120 views

cannot get ruby-opencv to build correctly on Raspberry

I'm trying to use ruby on a Raspberry Pi with the ruby-opencv gem - but alas it will not build :( root@raspberrypi:/usr/lib# uname -a Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT ...
9
votes
1answer
456 views

Different image quality from picamera capture to numpy array and path

The quality of capture from Pi Camera varies when captured to numpy array and when captured directly to a path. The former has more pinkish tint to it than the later. Why is that.? The code I used ...
0
votes
1answer
658 views

Compiling OpenCV on Pi 3

I have just successfully followed all steps provided at the following pg. http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/ When I want to compile the code with the ...
0
votes
1answer
225 views

Raspberry Pi3 OpenCV3.2-dev import cpu usage

So I have just made and installed opencv3.2 for python3. I went to import the package, and upon import, I am at 75% cpu consumption without processing anything or even grabbing a frame. Does anyone ...
0
votes
0answers
340 views

How to setup a C++ virtual environment on the raspberry pi 3?

I am currently trying to install openCV on my raspberry pi 3 and found this very nice tutorial to help me with that:http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-...
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 ...
1
vote
1answer
9k views

OpenCV real-time object tracking

I've been playing around with my Raspberry Pi model 3 including the camera v2. I've managed to install opencv Python and run some code such as detecting various objects or properties of different ...
4
votes
1answer
976 views

Segmentation fault while installing OpenCV. What am I doing wrong?

I am using instructions from http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/. I have not had any errors except for one error on step 4, specifically the ...
0
votes
1answer
264 views

Raspicam throws segmentation fault after 2nd retrieve (C++)

I have a script that continuously takes small pictures and compares the green channel, but when getting the 2nd picture it throws Segmentation fault. http://pastebin.com/CaUhSdP6 (line 37)
2
votes
1answer
2k views

how do I increase exposure before taking photo in opencv?

I wrote a program in C++, using wiring pi for the LED, trigger, ad openCV3.2 for the camera. It works, taking a photo, when the button is pressed, but the photo quality is low, even in a well lit room....
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 ...
2
votes
1answer
2k views

Extremely low frame rate when using Opencv for face detection

I have just installed opencv and am following this tutorial to detect faces while displaying a stream. The frame rate is horrible - around 1.5 fps. Why? Code: from time import sleep from picamera ...
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 ...
-5
votes
1answer
476 views

Which language is better for raspberry pi compute module for image processing?(Python/CPP/JAVA) [closed]

As I want to develop product using raspberry pi Compute module. Which language is better for image processing if I am using OpenCV?? Camera in project is steady taking video & doing processing...
0
votes
1answer
1k views

Streaming video from ip webcam via opencv and python on raspberry

I'm trying to display video stream through an IP webcam. import cv2 import sys cascPath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascPath) video_capture = cv2....
1
vote
1answer
375 views

install opencv on raspberry Pi 3 and create Mat vector in opencv in linux

I am writing a code for object detection and coordination finding in OpenCV. In windows, everything is done and the program is working wit no problem, but I need to move it to Linux and run OpenCV in ...
0
votes
1answer
1k views

Increase webcam fps = Raspberry Pi processing speed increase?

I'm using a Raspberry Pi B+ board for color processing in real time and the current processing speed is extremely slow. While I don't need to show the processed image to a display, the speed of ...
6
votes
1answer
326 views

What are the differences between these libraries? [closed]

Currently I don't know which library I should use OpenFace OpenBR OpenCV My system hast to recognize about 10 different persons and it will run on a Raspberry Pi 3 with the Raspberry Pi Camera ...
1
vote
1answer
1k views

Feature detection for embedded platform OpenCV [closed]

I'm trying to do object recognition in an embedded environment, and for this I'm using Raspberry Pi (Specifically version 2). I'm using OpenCV Library and as of now I'm using feature detection ...
1
vote
1answer
618 views

How to use Raspberry Pi and Pi camera standalone like Arduino?

I am writing a python code to detect balls using RPi, Pi Cam, and OpenCV library. I am a newbie to RPi. How can I use Raspberry Pi standalone which works just like Arduino? Thus, there should be auto ...
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 =...
0
votes
1answer
688 views

Installing Opencv make error

When I try to install opencv-3.0-alpha with python 2.7 to Raspberry pi 2. I got an error. [ 24%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.o [ 24%] Building ...
1
vote
1answer
127 views

How to allow a program with a high utilization of the processor to run for a long time

I'm running a python script which uses OpenCV an ffmpeg for video streaming on RPI 2 (os is raspbian Jessie). The script is camera = cv2.VideoCapture(self.camera_id) command = "ffmpeg -re -f ...
1
vote
1answer
199 views

OpenCV and python3

I recently installed opencv but before I run the python script i always have to run these two commands: workon cv source ~/.profile I already tried running the commands at boot, here's my '/etc/rc....
2
votes
1answer
646 views

Opencv on python3

I'm trying to do image processing on the pi using a USB webcam, For which i am using opencv As a beginner it took me hours to install opencv from this guide: http://www.pyimagesearch.com/2016/04/18/...
2
votes
1answer
1k views

GdkGLExt-WARNING **: Window system doesn't support OpenGL

I have wrote a c++ program to display camera picture using opencv command imshow, worked perfectly on Wheezy. Lately I've updated my RPI to latest Jessie. Now I get the GdkGLExt error when running my ...
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
493 views

overlay from opencv on top of camera stream [closed]

I watched this video. There is a face being tracked by a Raspberry Pi and a frame gets displayed around the face. I'm interested in creating the overlay with the frame. As you can see, the stream of ...
1
vote
1answer
2k views

Error Installing OpenCV on Raspberry Pi

I have been trying to install OpenCV on my Raspberry Pi with Python 3. I have followed this tutorial http://mitchtech.net/raspberry-pi-opencv/ and when I get to the make command it gets to around 14 ...
1
vote
2answers
5k views

Stereo Vision Using Compute Module: Pi camera synchronization

Good day, I am currently working on an obstacle avoiding UAV using stereo vision to obtain depth maps. I noticed that the quadcopter would sometimes not steer to the correct direction. I am using ...
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 ...
1
vote
1answer
1k views

Python 3.4 opencv import error

I've tried the installation of opencv 3 for Python 3+ on the Raspberry Pi. After importing the opencv using import cv2 on Python shell it gives me this error: ImportError: dynamic module does not ...
1
vote
1answer
993 views

OpenCV camera doesn't work in 'bgr' mode, but works in 'rgb' with inverted colours

I'm following this tutorial (specifically step 6) to get basic video working with openCV and my Pi 3 B. I know the camera works, because the camera.start_preview() and camera.stop_preview() code works ...
0
votes
3answers
5k views

autofocus raspi-cam

I was wondering if someone ever tried to implement a rudimentary autofocus for the raspberry pi camera. From hardware point of view one needs some actuator, that is able to turn the little objective ...
1
vote
2answers
1k views

Python doesn't recognize cv2 when running under sudo

I've installed opencv with python 2.7 using this tutorial. I've created a test python file and everything works fine. But when I try to run it as sudo, it throws an error: ImportError: No module ...
3
votes
2answers
3k views

Getting extremely low fps on Rpi 3 while image processing

I am working on a project that requires image processing to detect a traffic light and take action based on its status (on or off). I initially developed the code on my PC, using OpenCV and Python, it ...
1
vote
1answer
466 views

sudo pip install packagename not working

sudo pip install packagename not working... I am not able to install python package using pip.
0
votes
1answer
1k views

Getting multiple errors while Installing Scipy

I'm not able to install Scipy on my Raspberry Pi Model B. My current setup is: Raspberry Pi model B running Raspbian Jessie and 16gb SD card. OpenCV 3.1.0 installed on the raspberry pi using this ...
1
vote
1answer
523 views

Detecting red contours

I am trying to detect the largest red contour my picamera captures. The following is the code from picamera.array import PiRGBArray from picamera import PiCamera import cv2 import numpy as np ...