React app to display and update the actual canvas.
cd canvas-ui/
npm i
npm run dev
VITE_BACKEND_SOCKET_URL
: Specify an alternate backend websocket url (defaults tolocalhost:30000
)VITE_FIREBASE_API_KEY
: Specify the Firebase project API key (defaults toKEY_MISSING
)
Flask server to determine user hand coordinates from camera and update the frontend through websockets.
cd server/
pip install -r requirements.txt
python main.py
PORT
: Specify which port to run web server on (defaults to30000
)MODEL_FILE_URI
: Specify an alternate model location (defaults tomodel/gesture_recognizer.task
)POLLING_RATE
: Specify the rate (in milliseconds) at which to send coordinates through the websocket (defaults to100
)NUM_HANDS
: Specify max number of hands to support drawing at the same time (defaults to1
)CLEAR_ON_NO_CONNECTIONS
: Specify whether to clear the saved canvas state when there are no active connections (0
for NO,1
, for YES, defaults to1
)