Past Meetup

PGHPython: Hacking the visual world with OpenCV by Nicholas Dahm

This Meetup is past

65 people went

Location image of event venue

Details

Ever wanted to create your own snapchat-like filters, or sound the alarm when your flatmate enters the kitchen? Then this talk is for you!

In this talk we'll take the easy way into Computer Vision and Image Processing, using the Open source Computer Vision (OpenCV) library. With a very small amount of python code, you'll learn to manipulate images and webcam video, in fun and useful ways. This talk requires no prerequisite knowledge or experience. Even those new to python are encouraged to program along with it.

Those wishing to code along in the talk should install Python, OpenCV (v2.4 or v3), NumPy, and PIL/Pillow (optional, but encouraged) in advance. You can confirm that these are installed correctly by running the following commands:

$ python2
>> import numpy
>> import cv2
>> import PIL

Installation instructions:

### Archlinux ###

# pacman -Sy python2 python2-numpy opencv python2-pillow

-Ubuntu (12 -> 16)

# apt-get install python-opencv libopencv-dev python-imaging

### OSX ###

Use a package-manager like homebrew or macports. You may have to google around for instructions, such as these for opencv:

http://www.pyimagesearch.com/2016/12/19/install-opencv-3-on-macos-with-homebrew-the-easy-way/

UPDATE: I've recently had someone install opencv3 quite simply by installing homebrew, then simply running:
$ brew install python
$ brew install opencv3 --with-contrib
The installation of python via brew is important, as the brew-python version knows where to search for other brew-installed libraries. Also pay attention to the console messages, as they may tell you to run a few extra commands.

### Windows ###

Sacrifice 3 goats, pray to all deities, then Google... lots. It can be certainly be done though!