| Summary: | lios: Не работает функция сканирования экрана в Wayland-сессии | ||
|---|---|---|---|
| Product: | Branch p11 | Reporter: | Божченко Павел Александрович <bozhchenkopa> |
| Component: | lios | Assignee: | Artem Semenov <savoptik> |
| Status: | NEW --- | QA Contact: | qa-p11 <qa-p11> |
| Severity: | normal | ||
| Priority: | P5 | ||
| Version: | unspecified | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Божченко Павел Александрович
2026-01-26 12:47:15 MSK
Сообщение в консоль при попытке сделать скриншот для распознавания текста:
take_and_recognize_full_screenshot Started
import: missing an image filename `2' @ error/import.c/ImportImageCommand/1289.
eng
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"
convert: unable to open image '/tmp/Lios/1.png': Нет такого файла или каталога @ error/blob.c/OpenBlob/3596.
convert: no images defined `/tmp/Lios/1.png' @ error/deprecate.c/ConvertImageCommand/3368.
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"
convert: unable to open image '/tmp/Lios/1.png': Нет такого файла или каталога @ error/blob.c/OpenBlob/3596.
convert: no images defined `/tmp/1.png_for_ocr.png' @ error/deprecate.c/ConvertImageCommand/3368.
Error, cannot read input file /tmp/1.png_for_ocr.png: No such file or directory
Error during processing.
Process Process-1:
Traceback (most recent call last):
File "/usr/lib64/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib64/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/site-packages/lios/ocr/ocr_engine_base.py", line 73, in <lambda>
image_file_name : child_conn.send(self.ocr_image_to_text(image_file_name))),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/site-packages/lios/ocr/ocr_engine_tesseract.py", line 64, in ocr_image_to_text
os.remove("/tmp/{0}_for_ocr.png".format(file_name.split("/")[-1]))
FileNotFoundError: [Errno 2] Нет такого файла или каталога: '/tmp/1.png_for_ocr.png'
|