Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ionif/posenettothreejs

Controlling Three.js 3D model over websockets with Tensorflow.js Posenet and SocketIO
https://github.com/ionif/posenettothreejs

posenet socket-io socketio-client socketio-server three-js threejs websockets

Last synced: 3 months ago
JSON representation

Controlling Three.js 3D model over websockets with Tensorflow.js Posenet and SocketIO

Awesome Lists containing this project

README

        

# Controlling Three.js 3D model over websockets with Tensorflow.js Posenet and SocketIO

![demo](https://github.com/ionif/posenetToThreejs/blob/master/demo.gif)

It uses SocketIO for websocket communication on port 3030.

There are two clients: posnet and http://localhost:3030
that connect to the websocket server at ws://localhost:3030

You need yarn and npm for this to work.

To start the server: \
`cd server/` \
`npm start`

To start the client:
#### Quickstart
`cd posenet` \
`chmod a+x quickstart.sh` \
`./quickstart.sh`
#### Normal
`cd posenet` \
`yarn` \
`yarn build && yarn yalc publish` \
`cd demos` \
`yarn` \
`yarn yalc link @tensorflow-models/posenet` \
`yarn watch`

To update the client: \
`cd posenet/demos/` \
`chmod a+x build.sh` \
`./build.sh`

(On MacOS, make sure in Xcode, Preferences -> Locations, that Command Line Tools is valid)