Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Borketh/FastAmogusCounter.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAmogusCounter.jl

What this is

  • 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

What this isn't

  • serious
  • stable

Assets yoinked from analysus with Feyko's permission because I wanted to do some Julia and try to compete a bit

How to use

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.

Option 1 - Install with Pkg

using Pkg
pkg"add https://github.com/AstroFloof/FastAmogusCounter.jl.git#master"
using FastAmogusCounter
count_amogus("path/to/thing.png")

Option 2 - Clone and tinker

git clone https://github.com/AstroFloof/FastAmogusCounter.jl.git
cd FastAmogusCounter
julia --project

julia> ]
(FastAmogusCounter) pkg> test

Issues

I really don't care anymore, I spent too long on this anyway

Only supports PNGs because I'm lazy and it's faster for now

There is a commented-out thing that used to save only the amogi in the picture, that isn't working rn due to threading fuckery

About

counts little among us people in pixel art

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages