Skip to main content

Port of the Pygame PyIgnition 1.0 Particles Engine library to OpenCV2

Project description

particlescv2

particlescv2 is a port of the Particles Python PyGame library PyIgniton for OpenCV2. The original PyIgntion files can be found at https://launchpad.net/pyignition

The original repository for particlescv2 is at: Github https://github.com/bunkahle/particlescv2

Setup the library by running setup_cython.py:

setup_cython.py build_ext --inplace

This will generate a compiled cythonized particlescv2.pyd (Windows) or particlescv2.so (Linux, Mac) from the file particlescv2.pyx. This is useful for speed and performance. particlescv2 seems to be even faster than the original PyGame library PyIgnition.

The library is pretty fast even if it is not compiled. The plain Python routine can be found in particlescv2.py.

Binary for Win-32 Python27

For convenience there is also the precompiled binary for Win-32 Python 2.7 included: particlescv2.pyd. Copy this file to Lib/site-packages directory and you are ready to go:

import particlescv2
... your code

Examples

There are several examples for running the library in the Examples section.

Requirements

The code currently only runs under Python 2.7. Ports to Python 3 are welcome. If you want to compile the pyx file with cython you also need cython of course. The blist is required for running as well as numpy and opencv2. These libraries can easily be installed with

pip install numpy
pip install blist
pip install opencv-python

optionally pip install cython

opencv2 and numpy windows binaries and setup wheels can also be downloaded from Christoph Gohlkes Python page for windows: https://www.lfd.uci.edu/~gohlke/pythonlibs/

Changes

1.0 initial release for Python2

1.1 routine now also runs in Python3, removed old cv2 Syntax

License

Same license as PyIgntion: GNU GPL v3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

particlescv2-1.1.zip (16.6 kB view details)

Uploaded Source

File details

Details for the file particlescv2-1.1.zip.

File metadata

  • Download URL: particlescv2-1.1.zip
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.12

File hashes

Hashes for particlescv2-1.1.zip
Algorithm Hash digest
SHA256 e563ab42c98d0d51383ff1f629ac173331eec7609bbd1782afe361acb9ef9279
MD5 413d2a297ffa4858f352d5dbc187c8fb
BLAKE2b-256 2735840e250b95b7ba7f651019271b1f60db80f712f6a4209a643f80571a958c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page