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 dev
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app:
npm run build
Fix 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