Plot information
Enter the details of the harvested sample before scanning leaves.
Leaf photo
Lay leaves flat, non-overlapping, on a plain white or blue background. Include the printed 5 × 5 cm calibration square (or a ruler) fully visible in the frame. Shoot from directly above, with even light.
Take or upload one to begin.
Calibration
Set the real-world scale using the calibration object in the photo.
Segment leaf area
Auto-detect green leaf pixels, then touch up with the brush if needed. magenta = detected leaf area.
Results
Field log
All saved samples from this session, ready to export.
| Plot | Crop | Date | Ground m² | Leaf cm² | LAI |
|---|
Install & Share App
LeafScan is a Progressive Web App (PWA). Install it once and it behaves like a native app icon on the home screen — no app store needed.
🤖 Android
- Upload the app folder to Netlify, GitHub Pages, or Vercel.
- Open the app link in Google Chrome.
- Tap the ⋮ three-dot menu.
- Tap “Add to Home screen” or “Install app”.
- The LeafScan icon appears on the phone’s home screen.
- After that first load, the app keeps working offline.
🍎 iPhone
- Upload the app folder to Netlify, GitHub Pages, or Vercel.
- Open the app link in Safari — not Chrome.
- Tap the Share button.
- Tap “Add to Home Screen”.
- Tap “Add”.
- The LeafScan icon appears on the iPhone home screen.
- Offline use works after that first load, thanks to the bundled service worker cache.
📦 What's bundled for offline use
manifest.json— app name, icons, and home-screen behaviour.service-worker.js— caches the app shell after first load.icon-192.png&icon-512.png— home-screen and splash icons.- Cached on first visit:
index.html,manifest.json, both icons, and all CSS/JS (bundled inline inindex.htmlfor this app).
📁 Where exports are saved
Android Chrome: use “Choose export folder” in the Field Log step — LeafScan will save every CSV straight there using the File System Access API.
iPhone Safari: folder selection isn’t supported by iOS, so CSV exports fall back to a normal download into the Files / Downloads app.
🔗 Share this app
Uses your phone’s native share sheet when available, or copies the link to your clipboard.