Giter VIP home page Giter VIP logo

spout-for-python's Introduction

Spout for Python

TD

Based on https://github.com/spiraltechnica/Spout-for-Python

A modified Spout library using Boost::Python to enable Spout texture sharing using Python.

This library is for use with Python 3.5 / 3.6 / 3.7 64bit.

It was built against Boost 1.72 and Python 3.7-amd64 using Visual Studio 2019 on Windows 10 64bit

This modified library does not yet fully implement the functionality available in the SpoutSDK.

Using the Library

The SpoutSDK.pyd library is located in the Library/ folder of this repository. Choose desired python version and rename it to 'SpoutSDK.pyd'

You shouldn't need to compile Boost or have Visual Studio installed to run these examples and integrate the library into your own Python projects

Template

Use template.py to run a test:

python template.py will run with all default values python template.py --type output --spout_size 1280 720 --spout_output_name out output 1280x720 textue with name 'out'

Data processing

use main_pipeline function to do our data processing. It has input texture from receiver if active or white if receiver not active, and should return texture for sender if output desired.

def main_pipeline(data):
    output = data
    return output

Arguments

--type input/output/input-output --spout_size Width and height of the spout receiver and sender --spout_input_name Spout receiving name --spout_output_name Spout sending name --silent True if want hide pyGame window

You'll need

  • pygame
  • pyopengl

spout-for-python's People

Contributors

ajasra avatar aurialloop avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.