ESP  0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
ostream.h File Reference

OStream supports emitting prediction results to some downstream consumers, e.g. Mac OS Keyboard Emulator, OSC Stream, TCP Stream, etc. More...

#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ofxNetwork.h"
#include "stream.h"

Go to the source code of this file.

Classes

class  OStream
 Base class for output streams that forward ESP prediction results to other systems. More...
 
class  OStreamVector
 Base class for output streams that forward ESP pipeline output to other systems. More...
 
class  MacOSKeyboardOStream
 Emulate keyboard key presses corresponding to prediction results. More...
 
class  MacOSMouseOStream
 Emulate mouse double-clicks at locations corresponding to prediction results. More...
 
class  TcpOStream
 Send strings over a TCP socket based on pipeline predictions. More...
 

Macros

#define OSTREAM_H_
 

Variables

const uint64_t kGracePeriod = 500
 

Detailed Description

OStream supports emitting prediction results to some downstream consumers, e.g. Mac OS Keyboard Emulator, OSC Stream, TCP Stream, etc.

* MacOSKeyboardOStream ostream(3, '\0', 'f', 'd');
* MacOSMouseOStream ostream(3, 0, 0, 240, 240, 400, 400);
* TcpOStream ostream("localhost", 9999, 3, "", "mouse 300, 300.", "mouse 400, 400.");
* TcpOStream ostream("localhost", 5204, 3, "l", "r", " ");
* 

Macro Definition Documentation

#define OSTREAM_H_

Variable Documentation

const uint64_t kGracePeriod = 500