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

Open Source Computer Vision Library, real time computer vision

0
votes
0answers
11 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 ...
1
vote
0answers
28 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 ...
0
votes
0answers
16 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
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'...
0
votes
3answers
52 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
0answers
42 views

pip install opencv-python-headless on raspbian stretch lite

I'm using Stretch Lite on a Pi Zero W. I don't need Desktop for my purpose. I will be ssh-ing over WiFi. I need OpenCV. I will be capturing video frames / stills over a Pi Camera and sending them over ...
0
votes
1answer
66 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 ...
0
votes
0answers
4 views

OpenCV questions relating to a Raspberry Pi Project [migrated]

Is this the correct Forum to ask OpenCV questions in relation to a Raspberry Pi Based Robotics project? I asked one previously but a moderator moved it to Stack Overflow as they did not believe it was ...
1
vote
0answers
22 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
53 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 ...
0
votes
0answers
80 views

can't install opencv, no libpng3 package

I'm attempting to follow this tutorial, but it can't find the package libpng3. I'm runing rasbian stretch, and have done the steps before sudo apt-get install build-essential cmake cmake-curses-gui \ ...
0
votes
0answers
36 views

OpenCV Robot Navigation

I am after a few pointers if I may. Since entering PiWars last year I started to play around with Computer Vision using Raspberry Pi. I am a complete novice still :-) I am trying to develop some ...
0
votes
0answers
38 views

Opencv C Codes is alwas crashing with strange error message

i try to use this sourcecode with Opencv 3.4.3 and Boost 1.62. I installed on my Raspberry Pi 3 B+ everything from apt-get like cmake 3.7.2 and libboost-1.62. Only Opencv was installed from source ...
0
votes
0answers
19 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...) ...
0
votes
0answers
125 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 ...
0
votes
0answers
193 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....
1
vote
1answer
441 views

Install opencv on Raspberry Pi 3 using a different way

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 ...
0
votes
0answers
124 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 ...
0
votes
0answers
39 views

DISPLAY Error with using Raspberry Pi camera module with Python and Opencv

I encounter an error and this does not happen every time. When I run sobel edge detection right after reboot, it works. camera = PiCamera() camera.resolution = (640, 480) camera.framerate = 32 ...
0
votes
1answer
60 views

Open CV Cmake g++ does not work on Rasbian jessie

I am compiling Open CV library on Raspbian jessie. I get below error . > -- Check for working CXX compiler: /usr/bin/g++ -- broken > CMake Error at /usr/share/cmake-3.6/Modules/...
0
votes
1answer
449 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 ...
0
votes
2answers
510 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
0answers
331 views

Http IP camera not working on Pi but working on Ubuntu

I have a situation, I have two IP cameras one on RTSP and other on HTTP, I am using I am using Python 3.4.2 and opencv 3.4.1 on my raspberry pi, I am able to read from My webcam, and RTSP IP camera ...
0
votes
0answers
296 views

Raspberry pi 3 B connection with wireless IP camera through RTSP (Wifi)

i'm using python=3.5 and OpenCV 3.1.4 to establish a connection with my IP camera via RTSP protocol and by using wifi on Raspberry Pi 3 B here's my code import cv2 from imutils.video import ...
0
votes
1answer
51 views

Installing opencv-3.3.0-r5 on Gentoo 64 bit OS at Raspbery Pi 3B+

My linux environment is pi64 /home/demouser # uname -a Linux pi64 4.14.31-v8-b36f4e9e1984+ #1 SMP PREEMPT Sun Apr 1 14:15:34 BST 2018 aarch64 GNU/Linux First time, I use Porthole to emerge opencv-3....
4
votes
1answer
88 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 ...
1
vote
1answer
186 views

Slow Video Processing

I installed OpenCV libraries in raspberry pi for my project "Air Hockey Robot" and I'm using python for video processing. I am using PS3 eye camera for video capture at 60 fps. But it seems that video ...
0
votes
1answer
43 views

How to add openCV on PyCharm under rpi 3 B?

I am trying to add OpenCV lib on PyCharm running under Raspbian on a Rpi 3 model B. I tried the jessie version of commands but got stuck on the cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D ...
0
votes
0answers
246 views

How to improve face detection's performance and image quality using the NoIR camera?

I'm building something similar to a timelapse project where I'd like to be able to continuously detect faces and then align, scale and crop them before saving. I'm interested in having high quality ...
0
votes
1answer
914 views

Installing OpenCV 3

I have been trying to install opencv 3 but this github url(https://github.com/Itseez/opencv_contrib/archive/3.3.0.zip) seems not working. But the zip file is downloading when I'm entering above url in ...
0
votes
0answers
167 views

Webcam feed is very slow

I'm using this code to calibrate stereo vision using two Logitech c270 webcams and Raspberry pi 3 model B. My problem is webcam feeds shown by openCV are very slow and even not responding sometimes. ...
0
votes
0answers
225 views

opencv cv2.imshow doesn't work

I'm working a project that getting a video from usb camera on raspi for encode qr code. So I wanna display the current frame, but i am getting this error: <cv2.imshow('Current', frame) error:/...
2
votes
1answer
2k 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 ...
2
votes
2answers
1k 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 ...
0
votes
2answers
96 views

HEAD is now at 92387b1ef… Fix java version++

I have raspberry pi 3, I want to install OpenCV for python. while I was doing that according to the following steps... sudo apt-get update sudo apt-get upgrade sudo rpi-update sudo reboot sudo apt-...
5
votes
3answers
435 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 ...
0
votes
0answers
277 views

Gstreamer error qt / opencv project

After making project on Rpi I receive this error after calling VideoCapture c(0) (I think...) Am I referencing the Pi NoIR camera incorrectly? Or am I missing or have I incorrectly installed ...
1
vote
0answers
598 views

Cant import cv2 (Model B) Python 3.5

Basically Im very new to linux systems and an, above average in python, I intended to make a program that detect hand gesture (high five , victory one,three etc) , I created my own test code that ...
0
votes
0answers
677 views

Stream Pi Camera to Server - webRTC

I have setup a raspberry pi to stream an h264 video feed from a pi cam to a remote host using Red5 Pro. I then use openCV cv::VideoCapture to read the stream and process it. Im currently using RTMP ...
0
votes
1answer
180 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 ...
0
votes
2answers
53 views

How can I add a delay before raspberry pi cam starts recording?

I am using the following command to take video: os.popen('raspivid -1 640 -h480 -fps 25 -o motionCapture/' + timeStamp + '_motion,h264 -t ' + str(timeInSeconds * 1000)) The problem is when I try to ...
0
votes
0answers
259 views

Combining Opencv and Tkinter

I am new to python and I am stuck with this problem. I want to create a window that would have an entry box for threshold, which would then be used to make a binary image from camera. The binary image ...
0
votes
0answers
383 views

Error installing opencv on RPi2

I am trying to install OpenCV 3.0.0 on RPi2 with raspbian Stretch. When I run the following cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D ...
1
vote
0answers
215 views

How to wrap a H264 stream to a MP4 container

I have successfully streamed an h264 video over the local network with this command. raspivid -o - -t 0 -n -w 1280 -h 720 -vf -vs -fps 30 -b 3500000 | cvlc -vvv stream:///dev/stdin --sout '#rtp{...
0
votes
0answers
192 views

Switching between two cameras fails after resolution change from 640x480 to 1024x768

I have 2 cameras (1 - Kayeton KYT-U200-R01 and 2 - similar one but for IR) running on my Raspberry Pi 3. Everything worked fine but suddenly after resolution has been changed from 640x480 to 1024x768 ...
0
votes
1answer
87 views

Unable to connect access IP webcam

I'm trying to access my phone camera using IP Webcam android app. I'm programming Pi using my laptop via Remote Desktop Connection with a static IP set for Pi. Also I tried to stream webcam from Pi's ...
0
votes
0answers
49 views

Camera captue using picamera

im new to python and picamera. i was not able to capture an image using my code below. it gives me an error with the command camera.capture = get_image(). How can i fix this? also i would like my ...
0
votes
0answers
28 views

Can I do colour conversions on the GPU?

I'm using python with OpenCV. I need to do colour conversions such as yCrCb and maybe HSV and gray-scale. Using python, can I do this on the GPU? I'm using a resolution of 320*240 on the Pi 3.
1
vote
2answers
464 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 ...
0
votes
1answer
820 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 ...