Last active
June 15, 2024 07:58
-
-
Save dacr/cb1a8c949124a575db0bcb993a788469 to your computer and use it in GitHub Desktop.
extract text from an image / published by https://github.com/dacr/code-examples-manager #ae050f30-f03b-4549-93df-b08c6a4de460/522d047717fa864a047ccc7680f61d2ff1e48d81
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} | |
}: | |
pkgs.mkShell { | |
name = "tesseract-env-shell"; | |
buildInputs = with pkgs; [ | |
tesseract | |
scala-cli | |
]; | |
shellHook = '' | |
export LD_LIBRARY_PATH=${pkgs.tesseract}/lib | |
export TESSDATA_PREFIX=${pkgs.tesseract}/share/tessdata | |
''; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
�PNG | |