Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Hot answers tagged

14

OpenCV is now available in apt-get. You can search for it: apt-cache search opencv If you are doing development, just do: sudo apt-get install libopencv-dev At the time of this writing, it is OpenCV 2.3


12

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/2014/02/installing-opencv-on-a-raspberry-pi/). Hope it helps. Make sure your system is up-to-date. Run: sudo apt-get update sudo apt-get upgrade sudo rpi-update ...


11

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 Raspberry Pi Camera Module uv4l --driver raspicam --auto-video_nr


11

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-get upgrade sudo rpi-update sudo reboot sudo apt-get install build-essential git cmake pkg-config sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev ...


10

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: If you get an error while compiling with this option, just use make to fix it.


7

The gstreamer tells you the stream is unsupported. FFMPEG is on like you said. I had a look at the camera specifications- it comes out of laptop and is intended to work with Microsoft Windows mostly and not really supported for Linux but they say it will work on Redhat 2.+ That camera returns video in on of these codecs YUY2 (FFMPEG OFF?) MJPEG (FFMPEG ...


6

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 system. If it crashes there is no guarantee the reboot itself would happen. The normal solution would be to use a watchdog timer. The Pi has an inbuilt hardware ...


5

Your error message says that you have got internal compiler error. This means there is a bug in compiler that prevents this code from being build. It happens sometimes, especially on less supported architectures like armv6. There are couple of things you can do to try to work around this: use newer version of compiler. Default version in Debian 6 is GCC-4.6 ...


5

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 means that you'll install the target debian/ubuntu distro on an SD card, expand the filesystem, boot it once to check whether everything works or not, then mount ...


5

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 distros (such as Raspbian Jessie) it can easily be added by creating the file '/etc/pip.conf' containing: [global] extra-index-url=https://www.piwheels.org/simple ...


5

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 it can run Python. The pigpio Python module allows control of the remote GPIO. pigpio will let you properly control servos. It provides hardware timed PWM (...


4

That tutorial is for the Squeeze version of Debian and you are using Wheezy. Distribution upgrades often result in some packages being renamed, and others removed from the repositories. In this case, those two packages have both been removed. It appears that they are now built into one of the other packages, so your inability to install them wont effect ...


4

Have you tried: lsmod rmmod uvcvideo modprobe uvcvideo nodrop=1 timeout=5000 quirks=0x80 Also try to remove all "auto" settings through guvcview It worked perfectly for me. It has been running för 24 hours straight with a steady 15fps @ 320x240. Please check this for details. Cheers


4

OpenCV 2.4.* does not work on the Raspberry Pi. The latest stable version that works on the Raspberry Pi is OpenCV 2.3.1, which is what your second website links to. The reason for this is the lack of an official V4L driver. The reason you can't find those packages is because they are out of date. Substitute libavcodec53 and libavformat53 for ...


4

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: CXXFLAGS="-DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=0" While libtbb is not necessary for RPB1 owners, the Raspberry Pi B 2 has a quadcore processor and ...


4

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 useful to concentrate on improving that as you've obviously had it working before (albeit too slowly). So, first things first: If I weren't sure where the script ...


4

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


4

[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 this: @reboot /path/to/script will execute that script once your computer boots up.


4

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 camera. I ran the command: vcgencmd get_camera and got Returned supported=1 detected=0 Once the camera was reconnected, I was able to run raspistill -o image....


4

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". What it says is, "no such file or directory". As far as I can tell, libQTtest.so.4 is not actually part of openCV, although it is part of a GUI framework ...


4

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 and pip3 installed. sudo apt-get update sudo apt-get -y upgrade sudo apt-get -y install build-essential cmake unzip pkg-config sudo apt-get -y install libjpeg-...


3

You can use the terminal to install OpenCV, here is a link with information on how to install OpenCV on your RaspberryPi. And here is how to install eclipse: sudo apt-get update sudo apt-get install eclipse Hope it helped.


3

Until recently this wasn't possible - it requires a V4L2 driver for the camera which was previously absent. This is now available, just follow the instructions here to set up the driver and cv2 videocapture should work fine.


3

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 any service that requires authentication, internally handled by the PAM library. To get started you would need to compile from source as it is not available ...


3

It could be done, in theory, as all of these libraries can be built for ARMv6 (as far as I'm aware). The key thing to note is that the i386 instruction set which Windows uses will not run on the ARMv6 based processor used by the Raspberry Pi. This means that the program would not be executable in a form compiled for Windows - even under Wine. You would have ...


3

There are some different ways to approach the problem. A first hacky way to proceed would be to copy the libraries you built on the RPi on your PC and link your software against them. Another strategy would be to cross-compile OpenCV to have it on your PC. Something like the command you proposed would work. I experimented with cross compiling CMake ...


3

Those messages are good news, it means it is working and waiting for a connection on port 8080. Use your browser on any other machine, go to the IP address op the Raspberry Pi like this: http://<ip-address-of-pi>:8080 and you should be presented with a page where you can switch to streaming video, or snapshots.


3

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 has four cores and TBB is beneficial. Here are @danielchalef's steps in a bit more detail - substitute the latest tbb version as required: # Download and ...


3

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 the binary knows where it can find the library file. You can do this two ways: Any binary under linux automatically looks in the current directory for its ...


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