Skip to content

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

License

Notifications You must be signed in to change notification settings

ionif/posenetToThreejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

demo

It uses SocketIO for websocket communication on port 3030.

There are two clients: posnet and https://localhost:3030 that connect to the websocket server at ws:https://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)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published