Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ionif/posenettothreejs
- Owner: ionif
- License: mit
- Created: 2020-07-31T22:43:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T12:07:45.000Z (about 2 years ago)
- Last Synced: 2024-09-29T05:23:16.956Z (4 months ago)
- Topics: posenet, socket-io, socketio-client, socketio-server, three-js, threejs, websockets
- Language: JavaScript
- Homepage:
- Size: 9.02 MB
- Stars: 56
- Watchers: 4
- Forks: 11
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:3030You 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)