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

29
votes
3answers
9k views

Can I use OpenCV?

While the Raspberry Pi is not exactly a powerhouse, it should be capable of doing some OpenCV image or video processing. Has anyone tried to install it?
12
votes
2answers
24k views

Using OpenCV with RasPiCam and python

Has any one been able to get OpenCV to directly play video from the RasPiCam board using python? I've seen some projects involving workarounds, but what I'm interested in is being able to use the ...
11
votes
1answer
1k views

Reading video from camera (Kinect if possible)

I am starting up a project that will require Computer Vision to be used on the Raspberry Pi. I am relatively familiar with OpenCV and am aware that it can be installed successfully on a Raspberry Pi ...
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 ...
8
votes
2answers
28k views

installing OpenCV 3.0 on raspberry pi b+

Is it possible to install OpenCV 3.0, opencv python on Raspberry pi b+? How to install and are there any precompiled binaries available ?
8
votes
2answers
4k views

Can not capture video using OpenCv

I installed OpenCv 2.3.1 in my raspberry pi (Debian Wheezy) following this tutorial. But I can't take video using my USB webcam. Gstreamer shows this error: OpenCV Error: Unsupported format or ...
7
votes
2answers
38k views

How to install OpenCV on Raspberry Pi 3 in Raspbian Jessie?

I have searched google for the process of installing OpenCV on Raspbian Jessie on Raspberry Pi 3 but have not yet found any useful help for the query. Following are the links, http://www....
7
votes
2answers
9k views

Taking advantage of multiprocessing with OpenCV on raspberry Pi 2

I used to use OpenCV on Raspberry for different projects (face recognition, sync cam, stitcher etc...). I bought a raspberry Pi 2 for the advantages given by the new hardware config. However, I could ...
7
votes
1answer
5k views

Cross Compiling to Raspberry Pi from Windows with External Libraries

Following this guide, http://www.a2p.it/wordpress/tech-stuff/development/remote-debugging-raspberrypi/ , I was able to cross compile from Windows to Raspberry Pi. But is it possible to cross compile ...
6
votes
3answers
19k views

Picamera taking pictures fast and processing them

I'm working on a school project where I have to make a robot move parallel to a wall and stop when it sees a big red square. For this I have the picamera module and the openCV library. I have working ...
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 ...
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 ...
6
votes
1answer
3k views

What method should I use to track a moving object with a moving camera (using resources of RaspberryPi)

I'm playing around with motion detection through a webcam connected to RaspberryPi using OpenCV and cvBlob in C++. I want to kick it up a notch and make a robot that detects and tracks movement ...
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 "...
5
votes
3answers
459 views

Is it necessary to release Raspberry Pi Camera before rebooting? If so how do I do it?

I have a python3 script that uses OpenCV and a Raspberry Pi cam. It runs almost 24/7. Using crontab the pi will reboot every night at midnight and the script will begin running again. This is mostly ...
5
votes
3answers
3k views

Building Open CV fails on Raspbian on make at 61%

I am trying to install Open CV on Raspbian by following these steps: http://mitchtech.net/raspberry-pi-opencv/ Everything works up until I do a "make". It gets up to 61% and then I get the ...
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 ...
5
votes
2answers
4k views

Image Recognition Raspberry Pi

I'd like to distinguish different types of beers in my fridge using a Raspberry Pi. I saw a very good tutorial on Adafruit that utilized OpenCV for face recognition. Can these same face recognition ...
5
votes
1answer
7k views

Resolution properties for python's OpenCV and uv4l camera driver

I've followed this tutorial to install OpenCV 2.3.1 in raspberry and it has worked fine. I've also installed from here the uv4l raspicam driver. But now I need to modify some capture properties as the ...
5
votes
1answer
793 views

2 usb webcam on raspberry pi with OpenCV

I would like to connect 2 usb webcams to a RaspberryPI and be able to get at least 1920 x 1080 frames at 10 fps simultanously. This will be done using OpenCV. Has anyone done this and knows if this ...
4
votes
4answers
13k views

how to install libtbb-dev in raspberry-pi

I am trying to install libtbb-dev on my raspberry-pi as part of installing opencv. sudo apt-get install libtbb-dev But i am getting an error as Package libtbb-dev is not available,but is refered ...
4
votes
1answer
2k views

Raspberry Pi becomes unresponsive when running opencv

I have successfully installed OpenCV on my Raspberry Pi and have been fooling around with some simple webcam streaming, live canny-edge detection, and so forth, all using basic C and C++ code. However,...
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 ...
4
votes
1answer
790 views

Building Raspberry Pi apps from Windows

I want to build a C++ program for face detection using Visual Studio and OpenCV. I already installed the Visual Studio 2013 Express Edition and the OpenCV 2.4.8 on my Windows 8 computer and linked ...
4
votes
1answer
104 views

Does gpu memory affect video processing speeds using openCV or image array manipulations?

I am using my pi for video processing. The data transformations include image array manipulations and object detection. It does not include any video display. Essentially, the pi takes in a video ...
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 ...
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) ...
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 ...
3
votes
2answers
7k views

Error in installing opencv on raspberry pi

I tried to install opencv on my raspberry pi (OS:Debian wheezy) following the site http://eduardofv.com/read_post/185-Installing-OpenCV-on-the-Raspberry-Pi But when I entered the command it shows ...
3
votes
2answers
2k views

Failed to create MMAL component b'vc.ril.camera': Out of memory

I am trying to run a simple script that listens for a button click and then takes a picture. Once two pictures have been taken it compares the two using OpenCV to calculate the difference. I am ...
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 ...
3
votes
1answer
4k views

Installing OpenCV on Raspberry Pi: can't find packages

I'm trying to install OpenCV 2.4.7 on Raspberry Pi (Model B, OS: Raspbian). The guides I'm referring to are: 1. RASPBERRY PI + SIMPLECV + OPENCV + RASPICAM CSI CAMERA 2. Raspberry Pi + OpenCV 3. ... ...
3
votes
2answers
2k views

In Jessie light what is needed for a graphical (opencv) application to show?

I've compiled opencv from source and installed it on a rpi3 Jessie (full) and I decided to do the same on a new rpi3 but with Jessie light this time. However when I try to run some of the examples, I ...
3
votes
1answer
229 views

Syntax error in python code for setMouseCallback() event

I am working on setMouseCallback() event in a program for mouse as a paint brush. In the attachment, there is code on right side and Python Shell on Left side. When I run the code there is Syntax ...
3
votes
2answers
2k views

Porting Windows software

I would like to know is it possible to port software that uses OpenCV, OpenGL and QT on Windows to the Raspberry Pi. I wonder is it a must to use Qtonpi dist? I need resources like books, tutorials ...
3
votes
1answer
2k views

Installing mjpg-streamer

I tried to install mjpg-streamer(experimental) in pi. But I don't know what to do after the following command. This remains a lot of time. If I tried to kill it shows errors for next command. pi@...
3
votes
2answers
4k views

Is there a Raspbian image with OpenCV 3 pre-installed?

After spending days trying to get OpenCV3 to install on Raspbian Stretch, always failing, I thought it would massively help if there's an image with OpenCV pre-installed, which would save several ...
3
votes
1answer
843 views

how to install cross-compiled OpenCV's libraries on raspbery pi

My problem is may be complicated, I'll try to detail I cross compiled opencv for ARM (Raspberry Pi) from my host, and everything works fine. I also tried to cross compile an example and it also ...
3
votes
1answer
11k views

how do you build sample OpenCV programs that come bundled with the OpenCV source?

I have successfully installed OpenCV 2.3.1 on Raspbian image and I would like to build/run some of the C/C++ programs located under the ~/OpenCV-2.3.1/samples directory. For example, if I wanted to ...
3
votes
1answer
1k views

Stream video from Pi to an OpenCV application on a local remote computer

I am working on a project which requires real time processing of frames in a video. I have Pi setup with a Picamera. What I want is to stream video directly to an OpenCV application which is located ...
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 ...
3
votes
1answer
1k views

Why would an OpenCV program capturing video frames freeze after a few seconds?

I successfully installed: http://code.google.com/p/cvblob/ on my pi and compiled "red_object_tracking.cpp". Code located here: http://cvblob.googlecode.com/svn/trunk/samples/red_object_tracking....
3
votes
1answer
936 views

How to cross-compile OpenCV and copy python bindings?

I want to install dlib and OpenCV on Raspberry Pi 2. As you know, if I try to compile those on the Pi directly, then a) It takes a lot of time (3-4 hours for dlib and then 2 for OpenCV) and b) It is ...
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
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 ...
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
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, ...
2
votes
1answer
690 views

Install opencv on Raspberry Pi 3 in a different way than compiling from source

I am using Raspbian Stretch on my RPi 3, I wanted to install OpenCV on it. I did this before by following the instructions detailed here . The problem is that this takes a very long time. Lately, I've ...
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 ...
2
votes
1answer
14k views

Python - cannot import OpenCV module?

I used this guide which installs OpenCV in a virtual environment, however I am getting the following error when I try to import the cv2 module: $ source ~/.profile $ workon cv $ python >>> ...