Skip to content

Instantly share code, notes, and snippets.

View lgqaozora's full-sized avatar
😄

lgq lgqaozora

😄
View GitHub Profile
@Zulko
Zulko / bacterial_growth_animation.py
Last active December 15, 2020 17:36
Growing bacteria with population size analysis (Matplotlib/MoviePy)
"""
This script produces a video analysis proving for the first time in history
that bacterial populations grow exponentially. See the result here:
http://i.imgur.com/uoITKiA.gif
We proceed as follows:
- Download a video of bacteria growing under a microscope.
- Cut the video to keep only the first 7 seconds.
- Threshold each frame to find where the bacteria are, and compute the