Hacker News new | ask | show | jobs
by andai 804 days ago
The repos are 876 and 513 lines of code (lenssort + pixelsort).

I was going to share that information to encourage you.

However, those ~1400 lines depend on a facial recognition library (face-recognition, ~4500 lines), which depends on an ancient machine learning library (dlib, 481,573 lines), which depends on scipy (809,127 lines of code) and numpy (619,808 lines of code).

So... I suggest just swapping out the facial recognition part. Maybe face-api.js (24,016 lines of code), which depends on tfjs (321,310 lines, but hey, at least it runs in the browser! Also I think the tfjs-core part is smaller... at least, it used to be its own repo which was 4x smaller...)

(On another note, now I know why my Python imports take so long...)

Source: this utility to count the LoC on GitHub repos: https://codetabs.com/count-loc/count-loc-online.html

1 comments

Might not be as good as dlib, but it seems like there are WASM implementations for facial recognition.

https://github.com/noahlevenson/wasmface