- fast
- last time I run it it found 2339 amogi in a 2000x2000 image in 2.4 seconds, and that was on 4 virtual ARM cores
- stupid
- a sorta usable package
- a counter for tiny Among Us characters in an image
- inspired by r/place 2022
- serious
- stable
Assets yoinked from analysus with Feyko's permission because I wanted to do some Julia and try to compete a bit
Note: this algorithm is fastest when run with multiple threads, so launch julia with
-t X
or--threads X
where X is your computer's logical processor count.Note Note: it's usually better in the long run to put
alias julia="julia -t X"
in your shell's init script.
using Pkg
pkg"add https://github.com/AstroFloof/FastAmogusCounter.jl.git#master"
using FastAmogusCounter
count_amogus("path/to/thing.png")
git clone https://github.com/AstroFloof/FastAmogusCounter.jl.git
cd FastAmogusCounter
julia --project
julia> ]
(FastAmogusCounter) pkg> test