Skip to content

milo-trujillo/AntNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AntNet

This code takes a photo of an ant farm and attempts to convert it to a network diagram. It's a clumsy toy project, discussed in detail here.

To try it out, first get a photo of an ant farm - we'll call it ants.png. Then, run:

./preprocess ants.png processed.png
./hexagonalize.py
./floodfill.py
./montage.sh

Dependencies

Requires ImageMagick, and the following Python packages:

pip3 install igraph matplotlib seaborn pandas numpy PIL

About

Ant Farm Image -> GML File

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published