← Back

ofxFifo

github.com/antimodular/ofxFifo · @antimodular
OF 0.10 Utilities

pipes between python and OF

16 3 Last commit 8y ago Created 8y ago

Forks

Forks pushed to more recently than antimodular/ofxFifo itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

connorgmeehan/ofxFifo by @connorgmeehan · ★ 0 · pushed 7y ago

README

ofxFifo



ofxFifo is an openFrameworks addon that enables different apps to exchange large amout of data in real time using named pipes (FIFO). For example, you can grab video from webcam in openFrameworks, send the frames to python for processing, and retrieve its output in real time. Another possible usage is having two openFramework apps communicating with each other.

Installation

Drop the ofxFifo folder into the openFrameworks/addons/ folder and that's it. Tested on macOS 10.12 with OF 0.9.8, but should also work with other OS and OF versions.

Examples



OpenFrameworks x2

OpenFrameworks + python

There's also a built-in example for passing video between OF and python.

OpenFrameworks + ???

You can also communicate with ofxFifo from your favorite language. Here's how to do it:

echo "Hello there" > my_awesome_pipe
cat my_awesome_pipe                   

output: "Hello there"

Image data format



For transfering images, the following format is used:

Known issues

When receiving larger images in OpenFrameworks, some frames observe partial corruption. This is either due to data lost in pipe I/O, or C++'s problem with huge arrays. If you're a C++ pro and think you can fix this problem, pull requests are very welcome!

Get this addon

HTTPS
SSH