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

0
votes
1answer
209 views

Segmentation fault error while installing opencv on raspberry pi 3. Any reason for that?

Hi everyone I hope someone could help solve this issue,I'm trying to install openCV 3.3.0 with python 3.5 on the raspberry pi 3 for the second time ( first time I got no module named cv2 ) but this ...
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 ...
0
votes
1answer
279 views

Running openCV C++ file from python in Raspberrypi

I'm creating a object and color detection robot. Here in this case, I'm using C++ to run the camera and process the image with openCV in C++, but before I run the Camera, I want the robot to move and ...
0
votes
3answers
292 views

OpenCV 4 error?

When I run the command python faceDetection.py I get the error- VIDEOIO ERROR: V4L: can't open camera by index 0 Traceback (most recent call last): File "faceDetection.py", line 21, in <module&...
0
votes
1answer
190 views

How to Install OpenCV in Visual C++ for Linux Development

I want to use this plug-in for Visual Studio Visual C++ for Linux Development to develop applications for the Raspberry Pi with code generated from another computer using Visual Studio. In my laptop ...
1
vote
3answers
37 views

can't install opencv on my pi

I'm an absolute Raspberry Pi newbie. My intention is to get some camera vision project working for which I need OpenCV3.3's dnn Python module. I've found here a description of how OpenCV can be ...
1
vote
1answer
298 views

Fastest wired data transfer protocol between RPi and Android Device

I'm looking to download images that i'm capturing on RPi to my Android Device using USB, or some wired interface that I don't know about. I'm trying to avoid using wifi, ethernet, or bluetooth. I've ...
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/...
0
votes
2answers
999 views

Linking WiringPi library in CMakeLists

So, I have a C++ program that I've compiled with CMake and uses the OpenCV library which I'd like to integrate with wiringPi so I can use functions like digitalWrite(), digitalRead() etc... Before I ...
0
votes
1answer
61 views

trying to run 6 USB cameras simultaneously on a single Raspberry Pi 3B+ with add-on 4 port USB hub with external power

We are trying to simultaneously run 6 cameras on a Raspberry Pi 3B+ with an add-on 4 port USB hub that has an external power supply. The cameras are set at 15 FPS with a colour image size of 640 X 480....
1
vote
1answer
992 views

How to access pi camera with OpenCV to Laptop?

I do not have HDMI supported monitor for Raspberry pi 3. I want to use OpenCV with my pi camera for image processing and access those images and videos with OpenCV image output to my LAPTOP, which is ...
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....
0
votes
1answer
535 views

Install OpenCV faster - could it be transferred via a SD card?

I installed OpenCV on my RPI 3, now I have the new RPI zero W, since I know installing OpenCV (let's say 3.0.0) takes a very long time, I wondered if I could somehow transfer my already downloaded (...
0
votes
1answer
602 views

Access RPi's camera stream in OpenCV C++ (Qt)

I've setup my Raspberry pi 3 B with uv4l and have access to the video stream on http://(raspberry-IP):8080/stream address. Now, I have Qt5(C++) and OpenCV installed on my main computer. How can I ...
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 ...
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) ...
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 ...
0
votes
1answer
943 views

OpenCV VideoCapture.isOpened() always returns False?

I followed the installation tutorial at https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/#comment-451314 , and everything installed fine. But I ...
0
votes
2answers
377 views

Can't start picamera at Raspbian startup

I want to run an opencv-python program at Raspbian startup. The program is to capture images continuously from picamera and do some image processing using opencv and display it in full-screen mode. ...
0
votes
1answer
432 views

Opencv installation in raspberry pi

While trying to install opencv in Raspberry pi, I got this message ======================================================================== Couln't connect to server from the Internet. ...
0
votes
1answer
1k views

OpenCV 3,2 build hangs/freezes/get stuck during make build on RPi zero w

I have tried to compile OpenCV 3.2 onto my pi Zero W Board running Stretch and i'm using a 16GB SD Card (running SSH on Mac and Python 2.7). Running make to compile openCV takes over 9 hours to get ...
0
votes
2answers
944 views

import cv2 not working Raspberry Pi

I used pip to install opencv3 with the following command on an Anaconda virtual environment. install opencv-python I successfully installed it because I can see the package in pip list. (olfatf)...
0
votes
2answers
7k views

What is the solution to this error of OpenCV with video.capture() and it not correctly reading with video.read? (Completly new to raspberry pi)

I'm completely new to the raspberry pi and am looking for help with this same error I've been trying to solve for the past few days. I completely reinstalled OpenCV twice now from two methods on a ...
1
vote
1answer
466 views

sudo pip install packagename not working

sudo pip install packagename not working... I am not able to install python package using pip.
1
vote
1answer
123 views

How to read RAW Picamera jpeg images in python

I acquired a set of images with the command raspistill -r -ss 100000 -o image.jpg, and I'd like to process the 'JPEG+RAW' images, which I already obtained, with OpenCV on python. I am aware of ...
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 "...
0
votes
1answer
69 views

RPI object tracking with multiple objects

I have been reading a tutorial on creating a Rpi colour based object tracking system but have been unable to test it due to me being a away from my Rpi. However I have read through the code and it ...
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 ...
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 ...
0
votes
1answer
39 views

cv2.line is not working in Rpi 3

model no: RPi 3 B Software: Python 3.5.3 Problem: I am using opencv 3.4 .I was trying to draw a line using function cv2.line().But it returns nothing.But the same code was working fine in my laptop ...
-1
votes
0answers
65 views

drawContours problem

This my code in python 3.5 but a have problem when running this code: import matplotlib.pyplot as plt import imutils import numpy as np import cv2 image=cv2.imread('/home/pi/Downloads/marquage-...
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 ...
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 ...
0
votes
0answers
261 views

Problem with Pi Cam / Python / opencv: “Incorrect buffer length for resolution 640x480”

I want to build an animal counter based on pi zero w, pi cam, python and opencv. I read some tutorials (especially from https://www.pyimagesearch.com) how to setup all that stuff and in principle ...
1
vote
0answers
61 views

OpenCv compilation on raspberry pi stops at 16%

I was installing OPENCV on raspberry pi and all are done but when the compilation of opencv it stops at 16%.I used make -j4 as well as make -j1.It gives no error and it comes to build folder. This is ...
2
votes
1answer
3k views

How can I use OpenCV with Python 3 on a Raspberry Pi?

I have installed OpenCV and and access it with Python 2. However, I'm unable to use OpenCV with Python 3. It says "Cannot open shared object". ImportError: libQTtest.so.4: cannot open shared object ...
-1
votes
1answer
26 views

How to dynamically determine objects based on some uniqueness?

As the title states I looking for a way to (detect and then) determine a object within some range. The object will be forklift or "train" in the factory. Main goal is to provide some GUI from which it'...
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 ...
0
votes
0answers
28 views

Face Detection error? [duplicate]

When running "python faceDetection.py" The following error is outputed VIDEOIO ERROR: V4L: can't open camera by index 0 Traceback (most recent call last): File "faceDetection.py", line 21, in ...
0
votes
1answer
283 views

Workon Command not found when using pi, but works from ssh

when I run the work command to get into my cv virtual environment on my pi it displays pi@raspberrypi:~ $ workon cv bash: workon: command not found however when I ssh into my pi from my MacBook and ...
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 ...
1
vote
0answers
39 views

Raspberry camera with opencv, measure brightness

I want to build a camera with my Raspi. It should take picture whenever a face is detected. But it should give a warning when the brightness is too low for a good picture. Does anybody know a simlpe ...
0
votes
0answers
42 views

Executing a opencv python2 script from SSH Putty console

I try to execute a python2 script which is supposed to display a movie file. When I execute this code with VNC it works, I can see the movie being played (eventhough the fps is limitted around 2...) ...
1
vote
1answer
6k views

Can I use the PI Camera Stream in Python on a PC?

So I got a Raspberry Pi Zero Wireless with the Pi camera and I would like to use the camera with OpenCV in Python. The problem is, I know I can do this easily on the Pi itself but I highly doubt the ...
0
votes
0answers
374 views

OpenCV : Gtk-WARNING **: cannot open display:

I got a python script supposed to load a video. My Pi set up in headless mode and I would like not to use any X server for displaying the video but instead having the video displayed to the hdmi port....
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
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. ...
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 ...
1
vote
2answers
542 views

Image artifacts in raw TIFF from Pi Camera disappear when I first save as DNG and then convert. What gives?

I'm trying to use the Raspberry Pi plus the NoIR Picamera module V2.1 to collect raw (bayer-filtered) IR images for NDVI analysis of plants (programs written in Python). So far, I haven't found anyone ...
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 ...