How zznidar/colony-counter works
Colony Counter is a browser prototype that estimates bacterial colony counts from a Petri-dish photo. The documented workflow is to choose a photo, optionally tune dish and colony-detection settings, then inspect the annotated image and count. The analysis is implemented in one large JavaScript file, so its distinct responsibilities share that path. The service worker provides an offline-capable delivery path using a file list in cc-offline.js. Source excerpts are partial; relationships not shown in them are included only where the README documents the workflow.
Main entry points: sw.js Offline service worker · index.js Dish detection · index.html App page · cc-offline.js Offline file list
Components 12
User interface
- App page
index.html - Photo selection
index.js - Detection settings
index.js - Count result
index.js
Image analysis
- Dish detection
index.js - Colour analysis
index.js - Colony counting
index.js - Image annotations
index.js
Offline support
- Offline service worker
sw.js - Offline cache
- Offline file list
cc-offline.js
Other components
- User
Connections 11
- User → App page: opens
README.md - App page → Photo selection: selects photo
README.md - Photo selection → Dish detection: analyses photo
README.md - Detection settings → Dish detection: adjusts detection
README.md - Dish detection → Colour analysis: sets dish colours
index.js - Colour analysis → Colony counting: classifies colonies
README.md - Colony counting → Image annotations: marks colonies
README.md - Image annotations → Count result: shows count
README.md - Offline service worker → Offline file list: loads file list
sw.js - Offline service worker → Offline cache: writes cached files
sw.js - Offline service worker → Offline cache: serves cached resources
sw.js