zznidar / colony-counter Goto Github PK
View Code? Open in Web Editor NEWAutomatically count colonies from a photo of your Petri dish
Home Page: https://zznidar.github.io/colony-counter/
Automatically count colonies from a photo of your Petri dish
Home Page: https://zznidar.github.io/colony-counter/
Colonies are usually not linear, but rather circular. By getting the "colony" width/height ratio, we can discard lines, letters and some other noise.
But include a sharing link somewhere โ because from a standalone app the browser chrome is not visible.
Alternatively, use a different webapp type (but make sure it still works offline).
Should a colony centre (I guess) be found near the image edges, this line gets index out of range.
Line 507 in 246c6cb
example image: 271035948_679357069896602_9078540942867362065_n.jpg
sredina = 766, i = 2, sredina+i = 768, but resized image size is only 768x1024, thus indices 0:767 and 0:1023
Instead of hard-coded -3:5, we should do something that takes image size into account.
A picture taken directly with phone camera is usually quite big. There are mindestens three possible speed-up options:
for(let x = centre - r; x < centre + r; x++)
The green circle shows the area which should be analysed.
Actually, there's a fix in the comment already
Line 456 in 2bbec04
Instead of setting neighbouring pixels to 0 when reaching the centre of a colony, set them to 2 (or them+1) if they > 0.
When reaching the next centre, only count it if the value == 1. Should the value be > 1, do not count the centre, but still set the neighbours to 2.
This should avoid counting continuous small crossings that appear at circle edges.
Apparently iOS does not support changing the colour of the medium black square (
Depending on the lightning when capturing a photo of your petri dish, a (usually linear) gradient of brightness may appear over the agar. Bacteria on one side might be darker than agar on the other side (or vice-versa).
In such cases, it would be useful to be able to define a gradient of the background, against which the colour should be checked.
Maybe this will be more user-friendly once auto-dish-detection and auto-agar-colour detection are implemented.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.