Join Nostr
2025-07-08 19:02:34 UTC

Michael Stapelberg 🐧🐹😺 on Nostr: I spent literally hours trying to make work in virtualenv so that I can OCR text from ...

I spent literally hours trying to make https://layout-parser.readthedocs.io/en/latest/example/deep_layout_parsing/index.html work in virtualenv so that I can OCR text from newspaper article scans

Eventually, I got it to work (with lots of pinning) and thought: this will be a pain to productionize for my #NixOS server! …but ultimately I realized all packages I needed were actually already packaged in nixpkgs! 😅

Now with a flake.nix like https://gist.github.com/stapelberg/45bd82dec9d299fc1cf481c07f0c051d, I have a reproducible (stable!) way of running this program 🥳