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

2
votes
0answers
1k views

RPi camera stream to OpenCV in Python

I have been searching everywhere and tested what seems to be everything in order to get OpenCV in python to accept a video stream through gst-launch-1.0 from a RPi camera connected to a RPi. So far, I ...
0
votes
1answer
171 views

Activate Python Script through POST request

I installed and have running the google home + raspberry pi from: http://www.instructables.com/id/Google-Home-Raspberry-Pi-Power-Strip/ I modified the sw1_on.py and sw1_off.py codes to turn on an led ...
0
votes
0answers
258 views

Pi camera board return black screen using connection via Opencv 3.3 C++

I am using Raspberry Pi 3 with pi camera board and I want to use opencv(c++) VideoCapture to connect with the camera but it return black screen image. I already enable camera in rpi-config and install ...
0
votes
0answers
478 views

4k 60fps image processing via raspberry? any alternative?

I want to have 4k 60 fps camera video capture and+proccess the video vith opencv, i think raspberry cant handle it, can i somehow buy and program better arm cpu to do it? I want to build something ...
1
vote
1answer
64 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 ...
3
votes
1answer
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
0answers
95 views

Why OpenCV examples don't run unless I have the monitor connected since boot?

From my testing the scripts fail when the monitor wasn't connected since boot. And even if it was connected, if the monitor goes to sleep, the scripts will fail again. I get the error: (process:...
0
votes
1answer
120 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?
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
0answers
657 views

Assertion failed when running OpenCV example on a Raspberry Pi 3

I am trying to learn contours in Python using cv2. I tried the following code given in a tutorial guide # import the necessary packages import argparse import cv2 # construct the argument parse and ...
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
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
1answer
42 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
435 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
230 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
61 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
117 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 ...
5
votes
1answer
796 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
490 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/...
0
votes
0answers
46 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
291 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
3k 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
299 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
405 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
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 ...
1
vote
0answers
147 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 ...
0
votes
0answers
255 views

Fridge Webcam with Face Recognition

I wanted to start my first Raspberry Pi Project. I don't have a lot of experience with programming nor with the Raspberry Pi. My goal is to collect data on who (me or my girlfriend) opended the ...
1
vote
0answers
184 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
381 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
299 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
937 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
462 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
407 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 ...
0
votes
0answers
257 views

Raspberry Pi 3 Image analysis & object detection

My goal is to detect if there is an object in a picture. To do this, I'm using OpenCV on my Pi, and functions like Gaussian/Canny. I am unable to do this, either I detect an object when there is not, ...
2
votes
1answer
4k 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 ...
0
votes
1answer
399 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
4k 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
93 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
211 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
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....
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 ...
1
vote
1answer
993 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
280 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
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 ...
0
votes
1answer
2k 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
2answers
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
229 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
167 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,...