burtn / imgproc-pygame

Drop in image processing with pygame
0 stars 1 forks source link

imgproc-pygame

What is this?

There is an very helpful image processing tutorial for use with the Raspberry Pi here and here newer?. Unfortunately the python examples depend on a provided C library which depends on Linux header files which may not be availiable on say - OS X where you might also like to do some image processing.

To that end this is a rewrite of the imgproc.py script to use pygame rather than the C library as a drop-in replacement, the example scripts from the original zip should run without modification. (file an issue if this is not the case!).

Release Notes

Updated: 10/09/2013

Requirements

make, Python 2.7, pygame and optionally cython.

Installation

One-liner

Note: You may be prompted for a super-user password.

wget https://github.com/jake5991/imgproc-pygame/archive/master.zip && unzip master.zip && make

If you use either of the methods that use make your python packages folder will be detected automatically. You can see this location by running make location.

Manual
Pure Python

Follow these instructions if you cannot compile C programs.

or run make install-pure.

Cython (faster)

or run python setup.py build_ext --inplace to produce imgproc.c and imgproc.so in the current directory.

Check the makefile for more options.

FAQ

I dont have pygame installed? Run make install-pygame from the unzipped imgproc-pygame folder or see the pygame install pages for binary files.

I dont have cython installed? Run make install-cython from the unzipped imgproc-pygame folder or see the pygame install pages for binary files.

It isn't working...? _Please file an issue with your exact problem.

How can I contribute? Pull requests welcome.

License

Copyright (C) 2012 Jake Burton

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.