I was reviewing a PR and there was a screenshot of the terminal that had output I wanted in text form.
So, I installed an OCR tool locally (called tesseract
) and converted the PNG into TEXT.
# Install the OCR tool
brew install tesseract tesseract-lang
# Convert the PNG to TEXT
tesseract packages.png packages
# Output the contents
cat packages.txt
I alias it p2t,(picture to text) , so no more forgotten command
alias p2t='tesseract '