v0.4.4 #462
dynobo
announced in
Announcements
v0.4.4
#462
Replies: 1 comment
-
SOLVED by: scrot -s -e 'tesseract $f stdout -l chi_sim -c debug_file=/dev/null | xclip -sel clip' not a problem here. no need to read v0.4.4-1 from AUR
debug info $ normcap -v debug
19:50:55 - INFO - normcap:30 - Start NormCap v0.4.4
19:50:55 - DEBUG - normcap.gui.tray:60 - System info:
{'cli_args': '/usr/bin/normcap -v debug', 'is_briefcase_package': False, 'is_flatpak_package': False, 'platform': 'linux', 'pyside6_version': '6.6.0', 'qt_version': '6.6.0', 'qt_library_path': '/usr/lib/qt6/plugins, /usr/bin', 'config_directory': PosixPath('/home/mifen/.config/normcap'), 'normcap_version': '0.4.4', 'ressources_path': PosixPath('/usr/lib/python3.11/site-packages/normcap/resources'), 'tesseract_path': PosixPath('/usr/bin/tesseract'), 'tessdata_path': None, 'envs': {'TESSDATA_PREFIX': None, 'LD_LIBRARY_PATH': None}, 'desktop_environment': <DesktopEnvironment.OTHER: 0>, 'display_manager_is_wayland': False, 'screens': [Screen(is_primary=True, device_pixel_ratio=1.0, rect=Rect(left=0, top=0, right=2560, bottom=1440), index=0, screenshot=None), Screen(is_primary=False, device_pixel_ratio=1.0, rect=Rect(left=2560, top=0, right=3640, bottom=1920), index=1, screenshot=None)]}
19:50:55 - DEBUG - normcap.gui.tray:342 - Listen on local socket v0.4.4-normcap.
19:50:55 - DEBUG - normcap.gui.settings:128 - Skip update of non existing setting (cli_mode: False)
19:50:55 - DEBUG - normcap.gui.settings:128 - Skip update of non existing setting (background_mode: False)
19:50:55 - DEBUG - normcap.screengrab:32 - Select capture method QT
19:50:55 - DEBUG - normcap.gui.utils:22 - Save debug image as /tmp/normcap/1701172255.7181542_raw_screen0.png
19:50:55 - DEBUG - normcap.gui.utils:22 - Save debug image as /tmp/normcap/1701172255.965893_raw_screen1.png
19:50:56 - DEBUG - normcap.gui.window:131 - Create window for screen 0
19:50:56 - DEBUG - normcap.gui.window:193 - Set window of screen 0 to fullscreen
19:50:56 - DEBUG - normcap.gui.window:131 - Create window for screen 1
19:50:56 - DEBUG - normcap.gui.window:193 - Set window of screen 1 to fullscreen
19:50:56 - DEBUG - normcap:213 - [QT] qtwarningmsg - qsystemtrayicon::setvisible: no icon set
19:50:56 - DEBUG - normcap.ocr.tesseract:23 - Tesseract command output:
List of available languages in "/usr/share/tessdata/" (4):
chi_sim
chi_sim_vert
eng
osd
19:51:01 - DEBUG - normcap.gui.tray:294 - Hide 2 windows
19:51:01 - INFO - normcap.gui.tray:197 - Crop image to region (148, 853, 1497, 1065)
19:51:01 - DEBUG - normcap.gui.utils:22 - Save debug image as /tmp/normcap/1701172261.9544706_cropped.png
19:51:02 - DEBUG - normcap.gui.tray:222 - Start OCR
19:51:02 - DEBUG - normcap.ocr.enhance:76 - Scale image x3.2
19:51:02 - DEBUG - normcap.ocr.enhance:54 - Pad image by 80px
19:51:02 - DEBUG - normcap.ocr.recognize:35 - Run Tesseract on image of size (4474, 838) with args:
TessArgs(tessdata_path=None, lang='chi_sim', oem=<OEM.DEFAULT: 3>, psm=<PSM.AUTO_OSD: 1>)
19:51:05 - DEBUG - normcap.ocr.tesseract:23 - Tesseract command output:
19:51:05 - DEBUG - normcap.ocr.recognize:44 - OCR result:
OcrResult(tess_args=TessArgs(tessdata_path=None, lang='chi_sim', oem=<OEM.DEFAULT: 3>, psm=<PSM.AUTO_OSD: 1>), words=[{'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 1, 'left': 147, 'top': 135, 'width': 96, 'height': 95, 'conf': 77.497925, 'text': 'G)'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 2, 'left': 291, 'top': 150, 'width': 199, 'height': 71, 'conf': 92.191826, 'text': 'Text'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 3, 'left': 519, 'top': 147, 'width': 425, 'height': 74, 'conf': 90.698524, 'text': 'selection'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 4, 'left': 978, 'top': 147, 'width': 219, 'height': 74, 'conf': 92.4851, 'text': 'does'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 5, 'left': 1230, 'top': 155, 'width': 156, 'height': 66, 'conf': 92.314499, 'text': 'not'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 6, 'left': 1416, 'top': 147, 'width': 324, 'height': 96, 'conf': 89.449486, 'text': 'always'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 7, 'left': 1771, 'top': 147, 'width': 247, 'height': 74, 'conf': 90.375809, 'text': 'show'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 8, 'left': 2068, 'top': 121, 'width': 99, 'height': 116, 'conf': 48.965744, 'text': '@'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 9, 'left': 2166, 'top': 117, 'width': 98, 'height': 130, 'conf': 0.0, 'text': '水'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 1, 'left': 293, 'top': 311, 'width': 167, 'height': 50, 'conf': 92.808044, 'text': '#494'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 2, 'left': 486, 'top': 311, 'width': 73, 'height': 66, 'conf': 93.287666, 'text': 'by'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 3, 'left': 581, 'top': 311, 'width': 273, 'height': 66, 'conf': 92.397217, 'text': 'zany130'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 4, 'left': 877, 'top': 323, 'width': 127, 'height': 38, 'conf': 93.079773, 'text': 'was'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 5, 'left': 1030, 'top': 311, 'width': 207, 'height': 50, 'conf': 92.282417, 'text': 'closed'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 6, 'left': 1264, 'top': 323, 'width': 79, 'height': 38, 'conf': 92.282417, 'text': 'on'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 7, 'left': 1368, 'top': 311, 'width': 128, 'height': 66, 'conf': 92.878136, 'text': 'Aug'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 8, 'left': 1524, 'top': 311, 'width': 75, 'height': 50, 'conf': 92.97728, 'text': '27'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 9, 'left': 1657, 'top': 291, 'width': 89, 'height': 96, 'conf': 95.776718, 'text': '中'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 2, 'word_num': 10, 'left': 1769, 'top': 311, 'width': 229, 'height': 50, 'conf': 90.917061, 'text': '0.5.0b1'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 1, 'left': 147, 'top': 512, 'width': 96, 'height': 95, 'conf': 84.908943, 'text': 'G'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 2, 'left': 298, 'top': 521, 'width': 172, 'height': 74, 'conf': 92.596504, 'text': 'Exit'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 3, 'left': 499, 'top': 521, 'width': 305, 'height': 97, 'conf': 90.495346, 'text': 'option'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 4, 'left': 841, 'top': 521, 'width': 80, 'height': 74, 'conf': 92.933968, 'text': 'in'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 5, 'left': 956, 'top': 529, 'width': 333, 'height': 88, 'conf': 93.103531, 'text': 'system'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 6, 'left': 1320, 'top': 529, 'width': 196, 'height': 89, 'conf': 92.739273, 'text': 'tray'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 7, 'left': 1544, 'top': 521, 'width': 219, 'height': 74, 'conf': 92.537178, 'text': 'does'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 8, 'left': 1797, 'top': 529, 'width': 155, 'height': 66, 'conf': 92.235458, 'text': 'not'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 9, 'left': 1979, 'top': 521, 'width': 245, 'height': 74, 'conf': 90.723282, 'text': 'work'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 10, 'left': 2254, 'top': 521, 'width': 81, 'height': 74, 'conf': 92.287628, 'text': 'in'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 11, 'left': 2411, 'top': 491, 'width': 897, 'height': 132, 'conf': 80.943253, 'text': 'NormCap-0.4.3-x86_'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 12, 'left': 3327, 'top': 491, 'width': 603, 'height': 132, 'conf': 89.257942, 'text': '64.AppImage'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 13, 'left': 3987, 'top': 491, 'width': 108, 'height': 132, 'conf': 0.0, 'text': '@C'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 14, 'left': 4094, 'top': 491, 'width': 92, 'height': 132, 'conf': 0.0, 'text': '力'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 2, 'word_num': 1, 'left': 293, 'top': 685, 'width': 165, 'height': 50, 'conf': 91.449356, 'text': '#458'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 2, 'word_num': 2, 'left': 486, 'top': 685, 'width': 73, 'height': 66, 'conf': 89.640213, 'text': 'by'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 2, 'word_num': 3, 'left': 582, 'top': 685, 'width': 344, 'height': 50, 'conf': 50.65826, 'text': 'SnowbalIV'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 2, 'word_num': 4, 'left': 946, 'top': 698, 'width': 127, 'height': 37, 'conf': 92.674942, 'text': 'was'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 2, 'word_num': 5, 'left': 1098, 'top': 685, 'width': 207, 'height': 50, 'conf': 85.4515, 'text': 'closed'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 2, 'word_num': 6, 'left': 1333, 'top': 698, 'width': 79, 'height': 37, 'conf': 90.618813, 'text': 'on'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 2, 'word_num': 7, 'left': 1430, 'top': 685, 'width': 109, 'height': 63, 'conf': 72.733566, 'text': 'jun'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 2, 'word_num': 8, 'left': 1564, 'top': 685, 'width': 39, 'height': 50, 'conf': 96.583649, 'text': '4'}], image=<PySide6.QtGui.QImage(QSize(4474, 838),format=QImage::Format_RGB32,depth=32,devicePixelRatio=1,bytesPerLine=17896,sizeInBytes=14996848) at 0x7f5f98ce1400>, magic_scores={}, parsed='')
19:51:05 - INFO - normcap.ocr.magics.email_magic:33 - 0 emails found
19:51:05 - DEBUG - normcap.ocr.magics.email_magic:41 - 0/169 (0.0) chars in emails
19:51:05 - INFO - normcap.ocr.magics.url_magic:55 - 0 URLs found
19:51:05 - DEBUG - normcap.ocr.magics.url_magic:63 - 0/209 (0.0) chars in urls
19:51:05 - DEBUG - normcap.ocr.magics.magic:70 - Magic scores:
{'SingleLineMagic': 0, 'MultiLineMagic': 0, 'ParagraphMagic': 50.0, 'EmailMagic': 0.0, 'UrlMagic': 0.0}
19:51:05 - DEBUG - normcap.ocr.recognize:48 - Parsed text:
G)Textselectiondoesnotalwaysshow@水#494byzany130wasclosedonAug27中0.5.0b1
GExitoptioninsystemtraydoesnotworkinNormCap-0.4.3-x86_64.AppImage@C力#458bySnowbalIVwasclosedonjun4
19:51:05 - DEBUG - normcap.gui.utils:22 - Save debug image as /tmp/normcap/1701172265.841329_enhanced.png
19:51:06 - INFO - normcap.gui.tray:240 - Text from OCR:
G)Textselectiondoesnotalwaysshow@水#494byzany130wasclosedonAug27中0.5.0b1
GExitoptioninsystemtraydoesnotworkinNormCap-0.4.3-x86_64.AppImage@C力#458bySnowbalIVwasclosedonjun4
19:51:06 - DEBUG - normcap.clipboard.linux:47 - Select clipboard method QT
19:51:06 - DEBUG - normcap.gui.tray:270 - Copy text to clipboard
19:51:06 - DEBUG - normcap.gui.notifier:85 - Send notification via notify-send |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
See CHANGELOG for details.
This discussion was created from the release v0.4.4.
Beta Was this translation helpful? Give feedback.
All reactions