Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
2
votes
1answer
3k 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
321 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 ...
-4
votes
1answer
540 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...
1
vote
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
407 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 ...
5
votes
1answer
368 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
662 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 =...
1
vote
2answers
1k 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
132 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
201 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
673 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
591 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
564 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
6k 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
1k 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
6k 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
4k 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
517 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
687 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 ...
2
votes
1answer
1k views

can't save video with opencv 3.1 windows

i'm trying to capture a video using opencv 3.1. I'm using the following code, but when I run it on pycharm, a small window opens (according to task Manager it has something to do with video ...
0
votes
2answers
741 views

Error Install OpenCV 3.1.0

Trying to install OpenCV 3.1.0 on Raspbian Pi-2, came up with this error. Linking CXX static library ../../lib/libopencv_ts.a [ 52%] Built target opencv_ts Makefile:147: recipe for target 'all' ...
-1
votes
1answer
4k views

Activate virtual environment and run python script on RPi startup

I am working on my project and using a raspberry pi 2 with raspbian OS. I followed the following link http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/ to install ...
0
votes
3answers
19k views

How to install OpenCV3 for Python 3 on Raspberry Pi 3?

I have searched the net for the process but have not yet found any useful help for the query. Following are the links, http://www.linuxcircle.com/2015/05/18/open-computer-vision-opencv3-with-python-3-...
0
votes
1answer
2k views

raspberry camera module feed is slow with Opencv using v4l2

i am trying to use Opencv to video capture from the raspi cam to do some operation on it, the problem is i am using v4l2 to capture the video and it is so slow (10 sec delay and 2 fps). what i have ...
1
vote
0answers
243 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 ...
0
votes
1answer
1k views

raspberry camera module cannot be opened with device ID

i am trying to run this face recognition code from here! i successfully installed OpenCV on the raspberry, and i used the code before on windows. but here i have the problem with the raspberry ...
0
votes
1answer
400 views

execute cpp code written with visual studio on the Raspberry Pi 2

I am new to the Raspberry Pi and opencv lib, I have spent some time learning opencv up until I finished my first program written in c++ . Now I want to compile and execute the same c++ file on the Pi ...
1
vote
2answers
293 views

Raspbian Jessie and OpenCV 2.4.9 “get_buffer() failed (-12 (nil))” error

I upgraded my RPI2 to use Raspbian Jessie. (NOOBS 1.9.0) I also installed OpenCV 2.4.9.1 package. (It is the default package from apt-get install) Now, I have a problem while recording video with ...
0
votes
2answers
4k views

opencv raspicam configuration C++ Example

I need any help with this error pi@raspberrypi ~/opencam_test $ sudo g++ simpletest_raspicam_cv.cpp -o simpletest_raspicam_cv -I/usr/local/include/ -lraspicam -lraspicam_cv -lmmal -lmmal_core -...
1
vote
2answers
2k views

How to install OpenCV 3 on Raspbian Jessie

I followed installation procedure as in How to install OpenCV 3 on Raspbian Jessie. I am successful in entering OpenCV virtual environment. I am unable to compile and install OpenCVV (step 4 in the ...
-1
votes
1answer
366 views

Geting errors with c++ using opencv on raspberry Pi

For Face Recognition using raspberry Pi with opencv. I have tried using C++ code which is failing to include the opencv files. Please comment any python code for face recognition using opencv.
1
vote
1answer
514 views

Processed live video via Ethernet transfer

I'm trying to track an object with a webcam and my pi (let's call it pi1). Therefore I have a python script, which gives me a processed live video as an output. Besides, I have another pi (pi2) which ...
1
vote
3answers
1k views

OpenCV Installing (make) errors on /modules/objdetect/

im a total noob to raspberry and I want to create an opencv gesture recognizing app with the pi camera (the one which is connected thru the socket next to the hdmi port) and was installing opencv 3.1....
1
vote
0answers
148 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 ...
4
votes
1answer
363 views

In Opencv, after padding zeroes the output image is like broken and stretched, but the same code works well in Windows. How could we resolve this?

I am using Raspberry Pi 2 model B with Rasbian OS. I am first finding the largest contour from the image, then I am extracting the contour alone using a bounding rectangle (cropping). Then in this ...
1
vote
1answer
657 views

uvcvideo: Non-zero status (-5) in status completion handler

I'm using a RPI2 and a USB webcam (Microsoft HD3000) to record video. Now, I'm doing extensive testing and I see that when I record long video (10-12 hours) I sometimes see an error in dmesg. ...
2
votes
5answers
9k views

Can't compile OpenCV 3.1 on Raspberry PI: Missing videoio.h, videodev.h,

All, I've followed these instructions: installing OpenCV 3.0 on raspberry pi b+ and these: http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/#comment-389260 and ...
1
vote
2answers
1k views

Not able to Install openCV 2.4.9 on raspberry pi 2 model B

I am trying to install openCV 2.4.9 on raspberry pi 2 but facing some error regarding libtiff4-dev image format. I have tried with 'libtiff5-dev' also but it is not working. I dont know what the ...
2
votes
1answer
1k views

Is opencl supported in Raspberry Pi for stereo vision applications?

I am currently using the opencv library for implementing stereo vision on the raspberry pi. A colleague of mine is using an odroid sbc supporting opencl for parallel processing of matrices. Is ...
1
vote
1answer
1k views

Pi with Arch Linux and OpenCV: errors when running cmake

I have a Pi running a fresh Arch Linux installation and I want to install OpenCV 3, but I am facing an error that I do not have when installing OpenCV on my other computers. I wrote a script that ...
4
votes
1answer
968 views

Getting started with image processing using opencv in windows and using in raspberry pi

I am learning image processing using opencv in windows. In another project that I am working on, requires the image processing to be done in raspberry pi for object recognition. Since I do not own a ...