TODO:
- refactor code
- improve UI design
- handle edge cases / scenarios
- add features (e.g. normalisation, brighten / darken background, etc)
- use different models depending on device (lighter on mobile)
References:
- Svelte
- SvelteKit
- Tailwind CSS
- TensorFlow.js
- BodyPix
- Canvas API
- GitHub Pages
- Svelte GitHub Pages
- ICA Photo Guidelines
Start a development server:
npm run devTo create a production version of your app:
npm run buildYou can preview the production build with npm run preview.
To deploy your app:
npm run buildFix build/index.html to use relative path due to bug in Svelte's static adapter
- i.e. change
href="/internal"tohref="./internal"
Then:
npx gh-pages -d build -t true