From dbeee1852d573a42a7812372922da0c80514162d Mon Sep 17 00:00:00 2001 From: denis Date: Fri, 19 Jun 2026 06:26:30 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20bash/img=5Fto=5Ftext.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash/img_to_text.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bash/img_to_text.md diff --git a/bash/img_to_text.md b/bash/img_to_text.md new file mode 100644 index 0000000..d305c50 --- /dev/null +++ b/bash/img_to_text.md @@ -0,0 +1,9 @@ + +# Перевести PDF в Изображение затем в текст + +Для работы скрипта нужа предустановка соответствующих утилит + +```bash +pdftoppm -png name_files.pdf fortext.txt #pdf в изображение +for i in fortext.txt-??.png; do tesseract "$i" "text-$i" -l eng; done # Проходим циклом изобржаения, распозновая их +``` \ No newline at end of file