Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
3
votes
2answers
904 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
448 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
807 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 ...
2
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
2k 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
509 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
467 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
193 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
5k 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
115 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
186 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
127 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
944 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
585 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
890 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
174 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
2k 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
5k 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
6k 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 ...
2
votes
1answer
885 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
676 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
420 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 ...
1
vote
0answers
97 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
714 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
315 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
753 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
17k 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
10k 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
2k 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
5k 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
6k 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
2k 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
901 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
227 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
466 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.