• This repository has been archived on 16/Apr/2019
  • Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    Shell
  • License
    Other
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[Archived - no longer maintained] A pre-compiled binary of OpenCV 3.1.0 for the Raspberry Pi.

OpenCV for Pi

A pre-compiled binary of OpenCV for the Raspberry Pi. It is available in a ".deb" package and will save you countless hours not having to compile it yourself. This may or may not stay updated as I have to manually compile each version. I will try to make available most major versions. This was compiled on a Raspberry Pi 3 Model B+ running raspbian jessie. This version was built with TBB which enables automagic multithreading in many OpenCV algorithms.

Super Lazy Version

curl -sSf https://github.com/jabelone/OpenCV-for-Pi/raw/master/lazy_install.sh | sh

Remember to check the script before piping it into your bash! ¯\(ツ)/¯

Instructions

  1. Always good practice to update everything before you install stuff:
sudo apt-get update
sudo apt-get upgrade
  1. We need to install some packages that allow OpenCV to process images:
sudo apt-get install libtiff5-dev libjasper-dev libpng12-dev

If you get an error about libjpeg-dev try installing this first:

sudo apt-get install libjpeg-dev
  1. We need to install some packages that allow OpenCV to process videos:
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
  1. We need to install the GTK library for some GUI stuff like viewing images.
sudo apt-get install libgtk2.0-dev
  1. We need to install some other packages for various operations in OpenCV:
sudo apt-get install libatlas-base-dev gfortran
  1. We need to install pip if you haven't done so in the past:
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
  1. Now we can install NumPy - a python library for maths stuff - needed for maths stuff.
sudo pip install numpy
  1. Download and install the file from this repo called "latest-OpenCV.deb".
wget "https://github.com/jabelone/OpenCV-for-Pi/raw/master/latest-OpenCV.deb"
sudo dpkg -i latest-OpenCV.deb
  1. Test it installed correctly by doing the following: Open a python shell
python

Run the following commands, it should return the same version you installed.

import cv2
cv2.__version__
  1. Have fun with OpenCV and open an issue on GitHub if you have any problems or I forget to update it. pyimagesearch is a great resource to get started!

More Repositories

1

car-controller

An arduino firmware that outputs a PWM signal for steering motor control via serial.
Arduino
103
star
2

grandstreamClickToCall

A chrome extension that allows you to click on a phone number and send it directly to a grandstream handset to initiate a call
JavaScript
12
star
3

pythonSB

A python implementation of the Servo Blaster program, for controlling servos on a raspberry pi.
Python
7
star
4

MAVControl

WIP (DO NOT USE) browser based ground control station for ardupilot vehicles (python backend)
JavaScript
6
star
5

CarCompanion

An arduino car companion that can add multiple features to older cars normally only found on new ones!
Arduino
3
star
6

ifb299

IFB299 Assignment at QUT
Python
2
star
7

govhack2017

JavaScript
1
star
8

OpenSolo

A Fully Open-Source Software Solution for the iMX6 in the 3DR Solo hardware
Shell
1
star
9

jsensor

Open source sensor platform based on ESP8266 and compatible with MQTT.
Arduino
1
star
10

busbot

[In Progress] A chat bot that uses Facebook messenger and the serverless framework to convey Translink bus times.
JavaScript
1
star
11

Unearthed2017

Team "Under Pressure" awesome stuff for Unearthed 2017
Python
1
star
12

arduino-vixen-controller

Use your arduino to allow vixen 3 to control a bunch of relays or MOSFETS!
Arduino
1
star
13

avocentpdu

A python module that allows switching outlets on/off on an Avocent PDU (PM3012V, may work with others)
Python
1
star
14

capstone2020

Vue
1
star
15

whereistrumpbanned.com

[Archived] A simple website to track websites and services that have banned or restricted Donald Trump's accounts.
Vue
1
star
16

BoeingHackathon2018

Our teams entry to the Boeing Hackathon in Brisbane 2018
HTML
1
star