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

2
votes
1answer
917 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
654 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
3k 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
17k 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
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 ...
0
votes
1answer
969 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
0answers
950 views

Raspbian Jessie with OpenCV 3.0 and 2.4. How to remove 2.4?

I have installed OpenCV 3.0 and 2.4 on my RPI (Raspbian Jessie). Is there any way to remove (uninstall) the 2.4 OpenCV?
0
votes
1answer
347 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
270 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
3k 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
328 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
490 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
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 ...
4
votes
1answer
319 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
576 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 ...
5
votes
1answer
889 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 ...
4
votes
2answers
700 views

Raspberry Pi Camera Module slower than Desktop Webcam

I'm using CodeBlock IDE on raspberry pi 2 with raspberry pi camera module to run face detection program (via Haar Cascade). Now I've compared its performance using Microsoft LifeCam (USB connection) ...
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....
2
votes
1answer
716 views

Faster way to use Pi camera module with OpenCV C++

I learnt that The pi camera module does not work the same as the USB camera and VideoCapture cap(0) doesn't work with pi camera module. I am using this wrapper to get frames from pi camera module to ...
3
votes
2answers
6k views

OpenCV display image: window system doesn't support opengl

I have a project which uses the raspberry pi camera and openCV (also: ROS) to do some movement analysis. However, when I want to display the image (with the openCV API or a ROS node), there's an error ...
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 ...
0
votes
0answers
409 views

Install Opencv on an external Hard Drive

I am new to the raspberry world. I was trying to install opencv on my raspberry pi 2 and when I give the command: wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.0.0.zip I get the ...
1
vote
1answer
8k views

Face recognition with USB Camera

How would I go about using face recognition with a USB camera, NOT the Pi Camera Board? A link to a tutorial would be fine. I know it was possible with OpenCV, but is it still, and how? Edit Can I ...
1
vote
2answers
1k views

Undefined reference to raspicam::_private::Private_Impl[…]

I am trying to make a project for the Pi B+ using ROS, RaspiCam and OpenCV (in c++). I want to write my code in QTCreator in a Virtual Machine running Ubuntu 14.04, and then transfer the files to my ...
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 ...
3
votes
1answer
188 views

Compile GCC for Raspberry Pi 2B - Patches required?

I need to compile a modern version of GCC in order to compile CMake in order to compile OpenCV 3.0.0. So I want to compile a modern and stable version of GCC for the Raspberry Pi 2b. I've read this ...
0
votes
1answer
4k views

Very high camera latency with OpenCV

I have an USB camera and the official RPI camera. Both cameras deliver images with a delay of around 5 seconds with OpenCV 3.0 (VideoCapture) on my Raspberry Pi 2. When I run the same application on ...
2
votes
1answer
101 views

OpenCV release vs development version

I made a simple application with OpenCV for the RPI2. To do so, I installed the 'development' package on my RPI2. sudo apt-get install libopencv-dev python-opencv Now, I want to install my ...
0
votes
1answer
1k views

Vehicle detection (OpenCV). Arduino or Rasp Pi? [closed]

I am new to open cv, and I'm starting to do a project. I want to use open cv for vehicle detection. I prefer using C++ language. Should I go with Raspberry pi or Arduino ? And why(what are the ...
1
vote
2answers
2k views

Pip exception while installing matplotlib on raspberry pi

I am working in a opencv project on the raspberry pi, and im using a virtual environment, but i used pip to install numpy, scipy and other libraries, but when trying to install matplotlib on pip by: ...
2
votes
1answer
174 views

Can I Execute a Jar-File that contains JavaCV 1.0 on a Raspberry PI?

Is this possible to run a Jar-File that contains JavaCV 1.0 on a Raspberry PI?
-1
votes
1answer
125 views

A suitable OS for running a Java application which captures photos and prints them [closed]

I have developed a Java application, which captures photos from a webcam and detects faces (using OpenCV) and prints only the facial area on paper. Now I have to run this app on a Raspberry Pi. I need ...
1
vote
1answer
5k views

Access numpy array in openCV

Using the documentation here here, the code import time import picamera import picamera.array import cv2 with picamera.PiCamera() as camera: camera.start_preview() time.sleep(2) with ...
-1
votes
1answer
860 views

Accessing YUV data in openCV on the RPi [duplicate]

I came across thisquestion and answer which said how to get a numpy array from raspicam, using the PiYUVAnalysis class. I can output the array itself, But i do not know how to view the array as an ...
0
votes
0answers
496 views

openalpr error -bash: alpr: command not found

When I type alpr --help and entered, then it showed -bash: alpr: command not found error message. How to solve this problem? I followed this method to install all the stuff https://github.com/...
2
votes
2answers
775 views

Can't connect to the Pi after cloning the SD card

I want to make a new SD card with Raspbian and OpenCV installed. Instead of making it from scratch, I have already done this from another SD card that I use with raspberry. After cloning the SD card, ...
1
vote
1answer
1k views

lens for raspberry pi 2 to expand the field of view

Hi all i'm using raspberry pi 2 with raspbian , i'm working on face and eyes detection using opencv and c++ , i want to expand the field of view for the pi official camera module any suggestions will ...
0
votes
0answers
158 views

How to use floating point support in raspberry pi 2

I'm using raspberry pi 2 with raspbian and I'm working on face and eyes detection using opencv and c++. I want to improve the performance and the execution of my program and I was wondering if I can ...
6
votes
1answer
9k views

Raspicam C++ library — captured image requires several grab()s to be properly bright

Note that I am referring to the C++ library, raspicam (http://www.uco.es/investiga/grupos/ava/node/40), not the raspberry pi camera in general. Unfortunately, I don't have the reputation to make a "...
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 ...
1
vote
1answer
1k views

Kernel throwing up all kinds of errors over night

I am developing a system that uses OpenCV with Python to access the csi camera, and PyGame for the GUI. Due to the nature of the system (security program) it needs to be left unattended pretty much ...
1
vote
1answer
4k views

Installation OpenCV 3.0 on Raspberry Pi running Debian Wheezy

I need some help to find a tutorial or help installing OpenCV-3.0 on my raspberry pi running debian wheezy. The OS was already pre-installed on the micro-sd. I followed some guides online but it seems ...
3
votes
1answer
5k views

Error loading bc2835-v4l2 driver, Raspberry Pi and OpenCV

disclaimer: I am new to OpenCV and Raspberry Pi, although I have a fair amount of experience with linux systems in general Here is what I am attempting to accomplish: I am trying to use a Raspberry ...