Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
0
votes
1answer
359 views

python-OpenCV cv2.videocapture window shrinks

I am trying to get a simple opencv-python video capture to work which shows the live stream of the camera however when i run the code the camera window frame opens up and then immediately shrinks into ...
2
votes
1answer
4k views

Increasing fps of pi camera using OpenCV C++ implementation

I am using a NOIR Pi camera for my Raspberry Pi 3 module. I plan to run some high fps image processing algo using openCV in a C++ environment. However, I cant seem to obtain the video stream in a high ...
2
votes
1answer
397 views

Erratic errors in libfreenect on Raspberry Pi 3

I'm running a 3D SLAM application (RTAB-Map) on my Raspberry Pi 3 with Raspbian Jessie. The sensor I'm using is a Kinect v1 (Xbox 360) camera connected to one of the USB ports. I've installed ...
2
votes
1answer
491 views

What repositories to add for apt-get to find python-opencv

I've been trying to install the packages necessary to play with shape recognition with a camera. Virtually all sites recommend using opencv, and tell, like here, here and here, to install it with apt‐...
1
vote
1answer
8k 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 ...
1
vote
0answers
176 views

Unable to start capture: Invalid argument

Below code all are work well but when I add a code publish the live stream through dataplicity. There will occur error "Unable to start capture: Invalid argument i: Error grabbing frames". After the ...
1
vote
0answers
266 views

What is the camera matrix for picamera V2.1?

As you know, all cameras have original camera matrix and distortion coefficient values. Is there any guy who had already gotten exact camera matrix of picamera V2.1?
0
votes
1answer
1k views

Raspberry Pi Camera read speed too slow

I'm trying to write image frames from Raspberry Pi camera 1.3v. I'm using PiCamera library. When I run simple code to preview the camera, it shows frames almost real time. import time import picamera ...
0
votes
2answers
624 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. ...
1
vote
1answer
434 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 ...
3
votes
1answer
1k 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 ...
1
vote
1answer
573 views

Live stream video surveillance as client

Live streaming video using a raspberry pi, over a 4G network which is accessible from anywhere around the world. In this application raspberry pi will be the client to a webserver, and user should be ...
1
vote
0answers
508 views

Managing employees' attendance using Face Recognition

I'm creating an employees' attendance management system using Face recognition on RPi (2 or 3). I use Python face_recognition library for face detecting and recognition. I currently think of two ways ...
3
votes
1answer
6k views

Write in Gstreamer pipeline from opencv in python

I'm trying to stream some images form opencv using gstreamer and I got some issues with the pipeline. I'm new to gstreamer and opencv in general. I compiled opencv 3.2 with gstreamer for python3 on a ...
1
vote
1answer
674 views

Tons of Bluetooth: hci0: Frame reassembly failed (-84) messages

Sorry in advance if the explanation is too general, I can attach code if needed... I'm working on a project where a python program is running in a device, and a Bluetooth socket is opened and ...
1
vote
1answer
6k views

Raspberry pi python opencv error, gtk-warning cannot open display

I am running a python program from raspberry pi, which running this as text console mode. In normal desktop mode my program working, but when in text console mode, it says that gtk-warning cannot ...
1
vote
1answer
115 views

libtbb sh script not working

I am trying to obtain opencv on my raspberry pi 3B. I noticed there is no official guide for this so I am following the linux guide on the opencv website. and as many others have encountered, libtbb ...
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 ...
2
votes
0answers
251 views

How to Stream MJPEG from Pi camera?

I want to make something like Surveillance system from pi camera. How can I do that with Opencv and pi camera ? Can anyone please help me to understand How can I do like this example. I am not a pi ...
7
votes
2answers
41k 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....
3
votes
1answer
2k 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
346 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
2answers
9k 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 ...
0
votes
1answer
3k views

What is the fastest/best OS for OpenCV with a Pi 3? [closed]

I am using Raspberry Pi 3 for a surveillance project. In this project I need to use OpenCV 3 with pi camera. When I searched on Internet, some sites say Raspbian is good for this, whilst some say ...
0
votes
3answers
1k 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 ...
3
votes
1answer
266 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 ...
2
votes
1answer
201 views

Barcodes: Problem with OpenCV

I'm an absolute beginner with Python, but unfortunately I have to reach in a RPI project within 20 days. My task is to build a Barcode-Scanner. This is the code I want to use: github: loleg/iotcam.py,...
2
votes
0answers
277 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 ...
1
vote
0answers
322 views

opencv workon cv doesn't work

I installed opencv on my Pi zero via SSH. And now, if I digit workon cv via SSH it works. But if I digit workon cv in a graphical session (vncserver) terminal, bash responds: no command found.. ...
1
vote
0answers
2k views

OpenCV VideoWriter and Hardware h264

I'm working on a python/pygame application, and i'm facing some difficulties when I try to capture a video from a usb camera (640x480) to a h264 encoded file, through OpenCV. Everything work fine with ...
0
votes
1answer
647 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 (...
5
votes
1answer
5k 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
1answer
1k views

How to install python aruco module on raspberry pi 3?

I am trying to use OpenCV aruco libraries using python 2.7. I have OpenCV 3.2 installed on my raspberry pi 3. The problem is I am neither able to import aruco module in my python code nor use it via ...
-1
votes
1answer
384 views

Unable to capture faces “y is not defined”

I tried removing gray[y:y+h,x:x+w] in imwrite line and the code works amazing but as soon as I add this [y:y+h,x:x+w] it says: y is not defined. I just don't understand how can this error message!!! ...
1
vote
0answers
907 views

White Balance Drift off from Pi Camera

I'm currently trying to develop image tracking using color in Python 3 and OpenCV. But i am facing problem in PiCamera. At the moment, i've done some method to fix white balance, shutter speed, and ...
2
votes
1answer
327 views

Why do I have to cmake opencv?

Places with tutorials to make my RPi run OpenCV and start pattern recognition include the part where I have to be Building OpenCV. http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-...
0
votes
1answer
513 views

No OpenCV script working on Raspberry Pi 3

I had written few python scripts on Windows using opencv 3.2.0 and python 2.7.13. I, then, installed the same version of opencv on my R-Pi, and tried running the very same scripts on it, but none of ...
1
vote
3answers
6k views

PIP: Requirement already satisfied: imutils

I am trying to run a home surveillance program using rasp pi 3 model b i have done: sudo apt-get install python-pip python-opencv successfully but somehow stuck below: root@raspberrypi:/home/pi/...
0
votes
1answer
145 views

cannot get ruby-opencv to build correctly on Raspberry

I'm trying to use ruby on a Raspberry Pi with the ruby-opencv gem - but alas it will not build :( root@raspberrypi:/usr/lib# uname -a Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT ...
8
votes
1answer
719 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 ...
0
votes
1answer
791 views

Compiling OpenCV on Pi 3

I have just successfully followed all steps provided at the following pg. http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/ When I want to compile the code with the ...
0
votes
1answer
241 views

Raspberry Pi3 OpenCV3.2-dev import cpu usage

So I have just made and installed opencv3.2 for python3. I went to import the package, and upon import, I am at 75% cpu consumption without processing anything or even grabbing a frame. Does anyone ...
0
votes
0answers
460 views

How to setup a C++ virtual environment on the raspberry pi 3?

I am currently trying to install openCV on my raspberry pi 3 and found this very nice tutorial to help me with that:http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-...
2
votes
0answers
640 views

Increase FPS PiCam in Multiprocessing

Currently, my system is only producing 10 FPS out of 20, which is my target. I'm barely hit 15 FPS in single grab-and-show simple code like this: from picamera.array import PiRGBArray from picamera ...
1
vote
1answer
10k views

OpenCV real-time object tracking

I've been playing around with my Raspberry Pi model 3 including the camera v2. I've managed to install opencv Python and run some code such as detecting various objects or properties of different ...
4
votes
1answer
1k 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 ...
0
votes
1answer
336 views

Raspicam throws segmentation fault after 2nd retrieve (C++)

I have a script that continuously takes small pictures and compares the green channel, but when getting the 2nd picture it throws Segmentation fault. http://pastebin.com/CaUhSdP6 (line 37)
2
votes
1answer
3k views

how do I increase exposure before taking photo in opencv?

I wrote a program in C++, using wiring pi for the LED, trigger, ad openCV3.2 for the camera. It works, taking a photo, when the button is pressed, but the photo quality is low, even in a well lit room....
1
vote
0answers
823 views

How can I get the raspberry Pi camera working with c++ on OpenCV 3.2?

I was pleased to read about the addition of ARM support in the Opencv 3 change log, and decided to try installing OpenCV3.2 on my raspberry Pi. The installation appears to have been a success, and ...