et
is a tool what extracts text from pictures and pdfs by the power of on device Machinlearning from Apple.
It is build with the UNIX Philosophy in mind so all it ouputs goes to stdout and the program does one thing only... extracting text from images.
💡 please make sure you have swift installed
clone this repository and run the install.sh
script from the project root.
Here a some examples how you can use et
.
print to stdout
$ et <path-to-file>
combined with grep
you can search in pictures for accurencies
$ et <path-to-file> | grep "foo"
paste the text from your image to clipboard
$ et <path-to-file> | pbcopy
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Distributed under the MIT License. See LICENSE for more information.