We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [opencv]

Open Source Computer Vision Library, real time computer vision

Filter by
Sorted by
Tagged with
1
vote
1answer
74 views

Swap installations between Pis

I have RPi3 with OpenCV 3 installed on it. I have recently bought the Pi Zero and I noticed installing OpenCV 3 on the Zero would take 10 Hours!. Therefore, my question is whether I can replace the SD ...
6
votes
3answers
8k 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
243 views

Video Output through ssh on Raspbian Minimal + OpenCV example? [closed]

I installed the minimal version of Raspbian Strech on the RPi3. Tried to run the python samples of OpenCV and failed cuz it needed a video output. Is there a work-around?
1
vote
2answers
703 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. ...
2
votes
1answer
2k views

Found a PyPi Package for Opencv-contrib, but can't install using pip

I'm trying to install OpenCV for python with extra modules on my raspberry pi. The OpenCV website has a set of instructions that I have tried with different variations for the past several months. I ...
0
votes
1answer
3k 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
1answer
56 views

one RPI's capability to multi-task with complex Image Processing

I, as part of a project, have decided to implement a small scale version of automated collision avoidance system. I chose to go with Image based object detection. After initial research, I figured out ...
1
vote
0answers
621 views

OpenCV and PiCamera problem

I want to get photo from raspberry pi camera in python and i tried this code and it's works for me: for filename in camera.capture_continuous('img.jpg'): test_img = cv2.imread('img.jpg') But ...
0
votes
0answers
439 views

Want to find difference between two frames, but get a lot of noise because of the auto changing on exposure, brightness…(not sure) of the webcam

As title, I tried to use Raspberry Pi + logitech webcam to find the difference between two frames, the following is the code that I used: import cv2 #capture from camera at location 0 cap = cv2....
2
votes
1answer
137 views

Trigger python script from camera images?

I'm doing a project where the pi sits inside a box, with the camera pointed to the bottom. When there is an object inside this box, the raspberry pi is supposed to post to facebook every 10 minutes. ...
1
vote
0answers
160 views

Face recognition plotting [closed]

I have a program that is using OpenCV to identify faces and profiles. The default Haar cascade is set for frontal or right profile identifier. To find a left profile, I simply flip the image and it ...
6
votes
1answer
1k 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 ...
1
vote
1answer
597 views

How to install opencv on raspbian jessie Lite?

I am totally new to raspbian Lite and not know how to install opencv on this os. I need this for my school project which is written in python. I am trying this https://gist.github.com/willprice/...
1
vote
2answers
77 views

How to configure RPi security camera to be active when our cell phones aren't on the wifi network?

I've seen quite a few security camera examples and many have options for a duty schedule that activates the camera during certain specified days/hours to set up a routine. However I have fairly ...
0
votes
1answer
376 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
5k 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
424 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
533 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
184 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
286 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
711 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
497 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
624 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
530 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
7k 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
738 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
117 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
254 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....
4
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
2k 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
360 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
10k 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
279 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
221 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
286 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
339 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
671 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
6k 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
416 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
961 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 ...