Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
187 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,...
0
votes
0answers
22 views

Structure needs cleaning in raspbian while compiling opencv

Good morning I just want to ask a question about an error message I got all the time is that my system Raspbian said that the structure needs cleaning everytime I started to compile opencv and when ...
2
votes
0answers
36 views

Opencv VideoCapture much faster than PiCamera

I am trying to process frames from my V2 RPI Camera at high framerates and am stuck with the picamera module. The VideoCapture class from OpenCV seems to be much faster than using PiCamera....
3
votes
2answers
62 views

Run the program in the laptop and use the raspberry gpios

I'm working with face tracking and I want to activate some servomotors depending the motion of my face. For facetracking I'm using, an usb cam, opencv and dlib. Now results the raspberry can't run my ...
0
votes
0answers
20 views

import dlib fails

I want to use with OpenCV the library dlib, I installed in my virtual environment. I'm sure because with pip list appears: (Thesis_env) pi@raspberrypi:~/Environments $ pip list Package ...
1
vote
0answers
30 views

PiCamera vs VideoCapture

So I have a project that requires Computer Vision (video stream). But when I want to try my Pi Camera (not USB), there's two method that I can use. They are PiCamera.capture_continuous and cv2....
0
votes
0answers
9 views

Install openCV in raspbian using another Linux distro [duplicate]

Good morning I was trying to compile openCV using raspberry 3 and It took me a long time also I had a lot of problems like "Structure need cleaning" (on an installed NOOBS) I just wonder if I can ...
0
votes
1answer
34 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'...
1
vote
1answer
286 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 ...
1
vote
2answers
154 views

Stream remote pi+rasp camera to another computer?

Hi is it possible to stream the video feed from a pi camera (3 b+ model) across a LAN to another computer running Linux? My idea is to see if pi can be used almost like an IP security camera where I ...
1
vote
0answers
671 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 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, but when I ...
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 ...
0
votes
0answers
32 views

capturing video stream using piCam

i'm trying to capture the video stream using piCam. but i get this warning and the execution stops this the code: this the code I used: import numpy as np import cv2 cap = cv2.VideoCapture(0) cap....
0
votes
1answer
274 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
3answers
2k 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
340 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 ...
1
vote
1answer
413 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
30 views

How to run a servo motor if a particular condition is satisfied

I have a script of python which is about object detection once a particular class is identified the servo motor should work Iam using object detection using tensorflow and opencv , basically scripts ...
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
636 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 (...
1
vote
1answer
27 views

OpenCV installation error

I've followed this installation guide but on the last part where it says: Revert back the swap size to its original value of 100MB by editing the /etc/dphys-swapfile. And, restart the service by ...
4
votes
3answers
6k 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 ...
2
votes
2answers
100 views

How to activate the Python Virtual Environment

I'm trying to install OpenCV in my raspberry (I'm new with it) and I followed this post. I have done all the steps from 0 to 6. All this installation it's done in a virtual environment, but now I ...
1
vote
0answers
50 views

Getting Error: ImportError: No module named 'cv2' in Geany python editor

I'd finally installed OpenCV 4.1.0-dev in my raspberry pi with success, I checked that in Terminal by : pi@raspberrypi:~ $ python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]...
0
votes
1answer
57 views

How to transmit hand gesture data from a laptop to Raspberry-pi

I am making a hand gesture bot. In this hand gestures are detected from a laptop using image processing (used OpenCV & Python). I don't know how to transmit real-time output wirelessly of image ...
0
votes
1answer
1k 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
0answers
55 views

Raspicam Compilation - Cmake error - class_loader is not a catkin_package

My project require Raspi Camera unit and I install dependencies required following guide here Running the script below: sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=...
1
vote
2answers
870 views

Installing Opencv make error

When I try to install opencv-3.0-alpha with python 2.7 to Raspberry pi 2. I got an error. [ 24%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.o [ 24%] Building ...
0
votes
2answers
570 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
2answers
566 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
30 views

How can I distribute my workload among multiple raspberry pi running an OpenCV Application

I have 4 raspberry pis and one picamera. I wish to distribute my OpenCV task among the 4 pis. I haven't been able to find any good resources for how I could this efficiently anywhere. An approach I ...
1
vote
0answers
67 views

illegal instruction when importing opencv in python 3.5

illegal instruction when importing opencv into python compiled opencv3 for python 3 by using these commands $ cd ~/opencv-3.3.0/ $ mkdir build $ cd build $ cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D ...
0
votes
1answer
2k 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

Dependencies problem installing mmrcn

Hello i am trying to use ML techniques to identify cars in an image using opencv. I have been following this tutorial : https://medium.com/@ageitgey/snagging-parking-spaces-with-mask-r-cnn-and-python-...
0
votes
0answers
293 views

Installing dlib on raspberry pi3

I've been trying to install dlib on my raspberry pi 3 since past 2 days, but every time end up with a frozen screen. The pi is running on the latest raspbian and and everything seems like up-to-date, ...
0
votes
0answers
28 views

Using raspvid to stream to PC, I can see data on PC received but how to work with in openCV?

I am using PiCamera on my PI. I am executing this command on the PI: raspivid -n -t 0 -w 640 -h 480 -fps 30 -o - | nc 192.168.0.12 5000 On my computer (windows), executing this command: nc -l -p ...
0
votes
0answers
28 views

5 images(jpeg) per second OpenCV from purethermal 2 [duplicate]

Is it possible to capture 5 jpeg images per second from a purethermal 2 stream with opencv or another way on a raspberry pi for a set amount of time? If so how? (I have a FLIR lepton 3.5 on the ...
0
votes
2answers
2k 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)...
1
vote
0answers
46 views

How to 'source ~/.profile' and activate virtual environment and run python script from a .sh file

I am working on my project and using a raspberry pi 3B+ with raspbian OS. I followed the following link to pip install open cv on my pi using a virtual environment I named 'cv' and it works fine: ...
-1
votes
1answer
4k views

Activate virtual environment and run python script on RPi startup

I am working on my project and using a raspberry pi 2 with raspbian OS. I followed the following link http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/ to install ...
1
vote
1answer
181 views

How to cross compile OpenCV for the Raspberry PI Zero?

Hi so I've got a camera module for my Pi Zero and wanted to play around with OpenCV and Python. Looking around google, if found a few guides to get OpenCV to a Raspberry but most included to either ...
1
vote
0answers
25 views

How to connect/link two raspberry pies for video precessing?

i am fairly new to raspberry pi platform so this question may be too basic. I am working on a project where i need at least 2 camera modules for simultaneous video recording and processing and taking ...
1
vote
1answer
513 views

sudo pip install packagename not working

sudo pip install packagename not working... I am not able to install python package using pip.
0
votes
0answers
35 views

Rpi 3b opencv lines of code not registering

I recently installed opencv ans tried to run a simple process some of the commands won't read such as cv2.imshow() or cv2.imread () along with the waitkey() everything else works fine but a few ...
0
votes
2answers
2k 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 ...
2
votes
1answer
639 views

How to install OpenCV on Raspbian Stretch?

The directions for Raspbian Jessie fail with Error 2: ... [ 43%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_imgproc_tests_cpu.cpp.o c++: internal compiler error: ...
1
vote
1answer
52 views

Serial comms & USB camera in parallel/threaded?

My project is currently using OpenCV to controll a pair of motors via hardware PWM (am using the pigpio library for GPIO control). The video input is from a USB webcam. I would like to add some ...
2
votes
2answers
92 views

Would ZRAM be helpful for running OpenCV?

I'm doing some OpenCV development on a Raspberry Pi 3, and I have found some information about using ZRAM on the Pi to try and boost its processing effectiveness. I know this isn't actually adding ...
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/...
1
vote
0answers
144 views

Error unknown machine command despite compiling without errors

I recently made a project using opencv 4 on my raspberry pi 3 b+, but then decided to port the whole project to a new raspberry pi zero, as I want to make it a permanent setup and want to keep my py 3 ...