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
814 views

OpenCV cv2.VideoCapture(0) is not working well with webcam

I am trying to use a USB webcam for a computer vision project that outputs the diminations of moving object. I installed openCV and tried my python code which it worked perfect on my PC, but when I ...
1
vote
3answers
2k views

How to diagnose problem with OpenCV face tracking

I am attemping to create the pan-tilt face tracker, using Raspberry Pi 2 Raspian Regular Raspberry Pi Camera from an article on the Pimoroni site, and when I run the python code I get about 20 ...
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
3answers
372 views

Run code on Raspberry Pi without gui

I am developing an application based project and I am almost done with it. Now I need to covert that to a commercial level product. As it is application specific I want my code to run as soon as I ...
0
votes
0answers
92 views

2 scripts need every frame from NOIR camera board at same time

I have two opencv2/Python scripts running at the same time on the same Raspberry PI. A streaming server script based on this, that outputs a live camera feed to the web a motion detection script, ...
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 ...
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 (...
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 >>> ...
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 ...
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 ...
2
votes
1answer
5k views

RPi camera module with opencv [duplicate]

I am trying to use the raspberry pi camera module as the live video feed in my opencv code(c++). However, the pi camera module does not work the same as the USB camera. eg: for USB webcam: ...
1
vote
2answers
4k views

Displaying image from PI via ssh and xming on my PC

Firstly, I've googled around, but got myself horribly confused; hence this question. I have a headless/keyboardless Raspberry pi with a camera board on it, that I connect to via ssh using my windows ...
1
vote
1answer
5k views

Reading Frames of uncompressed yuv video file?

I recorded an uncompressed / un-encoded video in yuv format using camera of my raspberry pi. I want to read each frame as an image and also count the total number of frames of the video. I found ...
1
vote
1answer
1k views

Tiny picture using opencv2 and v4l2 driver

I'm using opencv2 and V4L2 driver on my pi and have managed to get a tiny picture out of the Raspberry Pi Camera Module with the following script: #!/usr/bin/env python import cv2 camera_port = 0 #...
0
votes
1answer
850 views

Making opencv2 work with NOIR camera board problems

I'm struggling to get opencv2 to work with my NOIR camera board. I'm following this guide to make the pi camera work with the opencv2, but don't fully understand what it's doing, and can not get it ...
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: ...
0
votes
1answer
202 views

Problems getting NOIR camera board working with OpenCV2

I'm trying to get opencv2 working on a Raspberry PI with a NOIR camera module. As I understand it Opencv doesn't work natively with the camera module; so I'm following this link to try and get it ...
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 ?
1
vote
1answer
1k views

Error while loading shared libraries: cv2.so

I installed OpenCV on my Raspberry, I wrote the first sample program (http://docs.opencv.org/doc/tutorials/introduction/display_image/display_image.html). It compile correctly, but if executed from ...
2
votes
1answer
1k views

How to compile OpenCV software on Raspberry?

I want compile an OpenCV program on Raspberry, the problem is that I didn't figure out how to do so. I installed OpenCV following this guide. $ pkg-config --modversion opencv 2.4.1 OpenCV can be ...
1
vote
1answer
2k views

Failed to run camera app. Please check for firmware updates

Trying to get the pi cam working with open cv per http://thinkrpi.wordpress.com/2013/05/22/opencvpi-cam-step-5-basic-use-display-a-picture/. Finally have the program built, but now I get this: pi@...
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.
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 ...
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 ...
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
2answers
15k views

Installing opencv (C++) on Raspberry pi and other misc packages

I've been doing a fair amount of research in regards to installing opencv on to a raspberrian distro, but the problem is that there is far too many different methods to installing it and truth be told,...
0
votes
1answer
3k views

site-packages dir empty but OpenCV works…what the?

I used the following to install opencv sudo apt-get install libopencv-dev python-opencv I can "import cv2" fine, read images, manipulate them to my hearts content...everything works great! However, ...
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 ...
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 ...
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 ...
2
votes
2answers
5k views

Pi Camera Module frames directly to OpenCV lib for processing

My intension is to use raspberry Pi for tracking coloured object. I am using Python, OpenCV and Raspberry pi Camera Module. Since OpenCV doesn’t work out of the Box with raspberryPi cam Module, I ...
0
votes
1answer
4k views

Exposure correction via Picamera module

I am using the python picamera module developed by Dave Hughes. As per the documentation, the camera exposure can be set between -25 to 25. In my application, I need to get brightest pixels from the ...
1
vote
1answer
696 views

Logging faces with OpenCV

I'm pretty new to OpenCV. Basically I want my RPi to do facial recognition with OpenCV and then log (save only the face as a picture) and store it in a database. How would I achieve this? I also want ...
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 ...
2
votes
1answer
3k views

I don't get 24 frames per second

Although the camera framerate has been set to 24, 24 frames are being captured at 3 seconds. Wondering where I am going wrong?? I need to convert the stream to an OpenCV object to do further image ...
1
vote
1answer
784 views

Difference between pi camera & usb HD cam

I am working on image processing project where working on frames taken by camera using raspberry pi. So i want to know which is better ? to use pi camera or usb cam , Hint : required good camera as ...
0
votes
0answers
174 views

Opencv configuration issue

I have recently installed opencv 2.4.8 on my raspberry pi.When i check the version with pkg-config --modversion opencv 2.4.8 But in my python code when i import cv2 i am getting the error as no ...
-1
votes
1answer
337 views

model a with opencv

I got a camera, a model A and a 8gig sd card and no idea what i'm doing I tried writing the noobs full image to the disk but when i plug it into the montior and power it on I get nothing Is there an ...
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 ...
2
votes
1answer
945 views

Can I use openCV with Java SE embedded wrapper for Raspberry Pi?

I will try to explain what I am trying to do, as it seems to be relevant in order to understand my question. I am currently trying to do face recognition from a webcam connected to a Raspberry Pi ...
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 ...
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 ...
1
vote
1answer
1k views

Options for slow camera via OpenCV

I'm desperately trying to use the Pi camera to do some work with it; I'm using OpenCV but trying to process the feed from the camera itself. Currently I'm running OpenCV on the Pi itself but this is ...
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 ...
1
vote
2answers
2k views

How to install opencv and eclipse on a raspberry pi

Is this possible? I've tried through command line but haven't found a clear tutorial yet. Would it be easier to accomplish this from gui or should I stick with the terminal?
0
votes
2answers
1k views

my raspberry pi freezes while face tracking using openCV and servoblaster

I'm trying to track face with Pan and tilt motion, using servoblaster and opencv, i followed this tutorial if anyone is intrested.. it runs perfectly but after few seconds camera freezes and it stops ...
2
votes
2answers
1k views

How can you use face recognition on raspberry pi as a login to the pi?

I have created an owncloud server using RPI, Now I was wondering how to implement the face recognition as a login for the pi. I know I have to use the OpenCV.
0
votes
0answers
255 views

Image Processing

I implemented face recognition algorithm in raspberry pi(python 2.7 is was used), i have many sets of faces, if the captured face is one in database then the face is detected(i am using eigen faces ...
1
vote
1answer
2k views

tornado server with video streaming

I'm running tornado web server on my Raspberry Pi and its task is very simple. It just takes commands and sends them to an Arduino over serial. I'm thinking of adding the Pi camera module and then ...