Hot answers tagged

15 votes
Accepted

Failed to create MMAL component b'vc.ril.camera': Out of memory

This error was resolved when I disconnected and reconnected my camera module. Somehow my camera module must have been wiggled loose when I was working with it and the Pi was not able to detect the ...
user avatar
  • 402
13 votes

ERROR: Environment '/home/pi/.virtualenvs/cv' does not contain an activate script

I'm running on a raspbian buster with Python 3.7.3. I ran into the same issue, "ERROR...no activation script". I tried @Lombax answer but it didn't work. However, I noticed that the version of ...
user avatar
12 votes
Accepted

installing OpenCV 3.0 on raspberry pi b+

Last night I've just built version 3.0.0-beta on the B version. It should be the same in a B+. Below are the steps that I've done to build it from the source (adapted from: http://robertcastle.com/...
user avatar
11 votes
Accepted

Using OpenCV with RasPiCam and python

You will be able to access to the raspi camera like other V4L2 device using : the official kernel V4L2 driver bcm2835-v4l2 sudo modprobe bcm2835-v4l2 the unofficial userspace V4L2 driver for the ...
user avatar
  • 1,094
11 votes
Accepted

How to install OpenCV on Raspberry Pi 3 in Raspbian Jessie?

I was doubtful too about virtualenv, and quite happy to live without it :) Here are the commands I took from both tutorial you provided, for OpenCV 3.1.0 generic stuff sudo apt-get update sudo apt-...
user avatar
  • 1,400
10 votes

installing OpenCV 3.0 on raspberry pi b+

When compiling according to Miguel's answer, do it with a >> make -j4 On the raspberry pi 2-B / B-2 model this may speed up the compilation significantly as use of all cores is made. NOTE:...
user avatar
  • 101
9 votes

ERROR: Environment '/home/pi/.virtualenvs/cv' does not contain an activate script

I am also facing the same error. You must add these lines on ~/.profile export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 export VIRTUALENVWRAPPER_VIRTUALENV=/usr/...
user avatar
6 votes
Accepted

Is it necessary to release Raspberry Pi Camera before rebooting? If so how do I do it?

There is NO NEED to do anything before a reboot. If you issue a sudo reboot command Linux will manage an orderly shutdown of the software. This is, however, a poor way of ensuring a reliable 24/7 ...
user avatar
  • 54.1k
6 votes

How can I use OpenCV with Python 3 on a Raspberry Pi?

It says "Cannot open shared object". ImportError:libQTtest.so.4:cannot open shared object file:no such file or directory Yes, but it does not say this is because "the library isnt shared with it"...
user avatar
  • 56.1k
5 votes

Picamera taking pictures fast and processing them

Sounds like a fascinating project! I'm going to ignore the second script for now as it's a bit confused; but there's plenty that can be done to speed up your first script, and it's probably more ...
user avatar
  • 3,928
5 votes

Python - cannot import OpenCV module?

Installing openCV does not include the python bindings. You need to install these packages as well: sudo apt-get install libopencv-dev python-opencv
user avatar
  • 79
5 votes

How to install OpenCV on Raspberry Pi 3 in Raspbian Jessie?

I will add to what @Technico.top has suggested. There's another method of installing OpenCV using emulation software to compile the software on your PC that doesn't require cross-complication. This ...
user avatar
5 votes

Is there a Raspbian image with OpenCV 3 pre-installed?

You can install opencv in a few minutes using piwheels: sudo apt install libatlas3-base libwebp6 libtiff5 libjasper1 libilmbase12 libopenexr22 libilmbase12 libgstreamer1.0-0 libavcodec57 ...
user avatar
  • 2,371
5 votes
Accepted

Install opencv on Raspberry Pi 3 in a different way than compiling from source

Precompiled wheels of opencv-python and opencv-contrib-python for arm / python 3 are available from piwheels (www.piwheels.org). On current Raspbian Stretch this already pre-configured. On other ...
user avatar
  • 3,322
5 votes
Accepted

Run the program in the laptop and use the raspberry gpios, PWM to control servos

The pigpio library lets you control the GPIO of one or more networked Pis from a laptop. The laptop may be Windows, Mac, Android, or Linux based - in fact it can run any operating system as long as ...
user avatar
  • 67.3k
5 votes
Accepted

How can i install OpenCV on Raspberry Pi 4 (Raspbian Buster)?

You should use OpenCV from the default Raspbian Repository. It is tested and fits best into the Raspbian distribution without errors (I hope :). On Buster you will find with: rpi ~$ apt list python*...
user avatar
  • 40k
4 votes

how to install libtbb-dev in raspberry-pi

I was able to successfully build and test tbb following the thread below: https://software.intel.com/en-us/forums/topic/500680 I built version tbb43_20150209oss and used the following flags to make: ...
user avatar
4 votes
Accepted

Run code on Raspberry Pi without gui

[edit] @Ghanima's answer is way better than this one, go check it ! You could use cron and add an @reboot task: Running crontab -e as root or sudo crontab -e will allow you to edit your cron. Add ...
user avatar
  • 56
4 votes

How to install OpenCV on Raspbian Stretch?

Following these directions from PyImageSearch fixes the problem. Those directions lack an easy copy-paste and have a lot of interspersed text, so I copy them here. I assume you already have Python3 ...
user avatar
3 votes

Taking advantage of multiprocessing with OpenCV on raspberry Pi 2

You should check out the multiprocessing library. If you have parts of you program that you can run in parallel, like processing multiple images and detecting a faces, you can simply define a process ...
user avatar
  • 131
3 votes
Accepted

Error while loading shared libraries: cv2.so

cv2.so should be someplace within the build directory. You can use find <build folder> -name cv2.so to locate it. In order to get ./First image.jpg to run sucessfully you'll need to ensure that ...
user avatar
  • 4,412
3 votes

Picamera taking pictures fast and processing them

You should also be able to directly set the size of the captured image, instead of doing a resize later; this will save a good chunk of compute time. Do this by setting: camera.resolution = (1024, ...
user avatar
  • 371
3 votes

Displaying image from PI via ssh and xming on my PC

Look at this link: https://tekyblog.wordpress.com/2012/02/02/how-to-setup-x11-forwarding-in-putty-using-xming/ Resolution (as per that website) RPi> su – root RPi> xauth list 10-111-11-11/...
user avatar
3 votes

How can you use face recognition on raspberry pi as a login to the pi?

A good starting point would be pam-face-authentication. From there site: PAM Face Authentication is a pluggable authentication module designed for facial authentication. You can use this module for ...
user avatar
3 votes

how to install libtbb-dev in raspberry-pi

libtbb isn't available on wheezy under armhf but Raspberry Pi version 1 is single core and TBB is unecessary. You can skip over TBB via a cmake option: -DWITH_TBB:BOOL=FALSE Raspberry Pi 2 however ...
user avatar
  • 149
3 votes

Taking advantage of multiprocessing with OpenCV on raspberry Pi 2

If you compile the OpenCV library with the OpenMP option active in the cmake file (it is off by default), many algorithms will use multiple cores automatically, without you needing to change anything ...
user avatar
  • 225
3 votes

Error loading bc2835-v4l2 driver, Raspberry Pi and OpenCV

SOLVED: with the command lsmod, you can see which drivers are installed. I had v4l2_common installed. I successfully loaded this driver with sudo modprobe v4l2_common (insert correct driver). And ...
user avatar
3 votes
Accepted

Kernel throwing up all kinds of errors over night

some of the errors here, and I hope someone can help explain why these errors occur That's literally just the tip of an iceberg. By "literally", I mean system log messages are classified into 8 ...
user avatar
  • 56.1k
3 votes
Accepted

Pip exception while installing matplotlib on raspberry pi

I researched a little more an I solved it by using pip install --no-cache-dir matplotlib
user avatar
3 votes
Accepted

Getting started with image processing using opencv in windows and using in raspberry pi

This will depend a lot based on what you want to do with the RPi. If you want to run Windows 10 IOT... I'm admittedly unfamiliar with Windows 10 IOT, but I'll try to answer as best I can. You'll ...
user avatar
  • 11.8k

Only top scored, non community-wiki answers of a minimum length are eligible