OpenTSPS
TSPS is a cross platform Toolkit for Sensing People in Spaces. It performs openCV operations on live video (Kinect, web camera, etc) and sends it to clients as JSON (via WebSockets), OSC, TUIO, or TCP.
Install / Use
/learn @labatrockwell/OpenTSPSREADME
About
TSPS is a toolkit for sensing people in spaces meant for both prototyping and permanent installations. It uses openCV to analyze a camera, kinect, or video data, and sends what it finds via OSC, TCP, TUIO, or Websockets. There are example TSPS clients in Processing, Javascript, Flash, Quartz composer, and many others!
Downloads
Because of the now defunct Github downloads, TSPS downloads are hosted at Sourceforge
Installing:
-
Mac OS X - 10.6+
- web camera, video files, or Kinect:
- download and extract openTSPS_1.3_mac.zip
- run openTSPS/openTSPS.app
- ASUS Xtion
- download and extract openTSPS_1.3_openNI_mac.zip
- install drivers (thanks to James George for this tip):
- easiest way is to use the package from Sensecast http://sensecast.com/files/Sensecast.and.Libs.Installer.v.0.02.dmg
- web camera, video files, or Kinect:
-
Windows
- Tested with Windows 7
- web camera, video files:
- download and extract openTSPS_1.3_win.zip
- run openTSPS.exe
- Kinect
- download and extract openTSPS_1.3_win.zip
- plug in your kinect
- manually install drivers from openTSPS/drivers/Kinect
- run openTSPS/openTSPS.exe
-
All platforms
- make sure to keep the "data" folder next to your app if you move it!
Compiling:
- clone openframeworks 0.8.0 from here: https://github.com/openframeworks/openFrameworks
- clone the TSPS directory into openframeworks/
- clone all submodules:
git submodule update --init --recursive
- Kinect 2 support: checkout ofxKinectForWindows2 using new cloneaddons.sh
bash cloneaddons.sh
- open the project for your platform (Xcode of vs2010) in openTSPS/standalone/basic
- Windows only: add this preprocessor argument to the ofxKinectForWindows2 project:
_WIN32_WINNT=0x500
- WINDOWS ONLY: Include winsock2.h instead of winsock.h everywhere in ofxKinect (see this issue). It should be in 3 files:
- libs/libfreenect/platform/windows/libusb10emu/libusb-1.0/libusb.h
- libs/libfreenect/include/libfreenect.h
- libs/libusb-1.0/include/libusb-1.0/libusb.h
- compile and run!
Compiling OS X 10.7+:
To use the video settings feature with openFrameworks, you must compile against OS X 10.6. If you don't need the video settings, change the Base SDK in the openTSPS project and openFrameworks project to "Latest SDK".
To compile against 10.6, follow the steps laid out in this forum post
Build Script
- (OS X) - You can alternately build all of the binaries, the Processing library, and zip up all examples by running the build script
- cd /Directory/of/openTSPS/build
- bash build.sh VERSION_NUMBER (e.g. 1.3)
- this will place 4 zip files in openTSPS/releases
- note: you must have Xcode installed for this to work!
Troubleshooting
- If you have trouble compiling, experience crashes, or need any general help, please visit the TSPS Forum
WebSockets
- To turn on WebSocket communication (on by default in 1.1), select the Communication panel in the GUI and edit the WebSockets panel at the very bottom.
- To test your WebSocket, simply compile/run openTSPS, then navigate your browser to localhost:PORT, where PORT is the port that is specified in the GUI. By default it's localhost:7681.
- To have extra fun, open that same URL in a bunch of browser windows.
- To have the most fun, open up another computer to http://YOUR_IP_ADDRESS:PORT
- Making your own JS TSPS clients is easy (and they don't have to live in the bin/data/web directory); the TSPS WebSocket sender sends JSON, so you don't even have to use our JS files if you don't want to.
Related Skills
qqbot-channel
353.1kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.7k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
353.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
3.1kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
