Commit Graph
97 Commits
Author SHA1 Message Date
AuroraWright 6c9ec56329 Add Apple Live Text 2024-02-11 12:41:33 +01:00
AuroraWright 35725a43e8 Apple vision changes 2024-02-09 16:42:57 +01:00
AuroraWright e2f2aeb0c8 Update version 2024-02-09 05:14:56 +01:00
AuroraWright e06647606c Allow combo_pause without combo_engine_switch 2024-02-09 05:14:36 +01:00
AuroraWright 7fa34c90ff Simplify logic 2024-02-09 04:53:46 +01:00
AuroraWright 7fc7b497ee Add langid to requirements and clarification to readme 2024-02-08 19:56:02 +01:00
AuroraWright 7951596ee3 Update readme 2024-02-08 19:45:10 +01:00
AuroraWright 26a65563f4 Implement combos to switch/pause from other windows, update version 2024-02-08 19:42:36 +01:00
AuroraWright d415225b42 Not needed on latest transformers 2024-02-06 19:40:47 +01:00
AuroraWright cec8f3adc9 Fix small images with Azure and error messages being copied out 2024-02-06 12:11:43 +01:00
AuroraWright d69a1df6ec Improve screen reading filtering again x2 2024-02-04 13:05:11 +01:00
AuroraWright f324dfc5a8 Improve screen reading filtering again 2024-02-04 10:11:53 +01:00
AuroraWright acfe55bb34 Improve screen reading filtering 2024-02-03 12:26:09 +01:00
AuroraWright 95932cc89d Fix screen capture regex 2024-02-03 11:44:56 +01:00
AuroraWright 73d57a58ed Preserve text block splits (for engines detecting them 2024-02-03 11:42:02 +01:00
AuroraWright 42303faa3e Handle no text detected for Google Vision and Azure 2024-02-02 15:44:27 +01:00
AuroraWright c2feb52233 Add support for fpng-py, update Azure APIs 2024-02-02 15:27:55 +01:00
AuroraWright a6581dd3ff Minor style changes 2024-01-31 16:32:09 +01:00
AuroraWright 555d95f907 Use native keyboard image grabbing for windows and macOS (much faster at least on the latter 2024-01-31 06:13:58 +01:00
AuroraWright 48c360b955 Increase version 2024-01-30 19:54:43 +01:00
AuroraWright f5d924f1c6 Simplify a bit 2024-01-30 19:53:59 +01:00
AuroraWright e097bce606 Filter out repeated blocks of text when reading with screen capture 2024-01-30 19:22:13 +01:00
AuroraWright e1caf06134 Download config file if missing 2024-01-30 15:14:04 +01:00
AuroraWright 1b88f2a6c5 Add an option to wait for a combo to take screenshots instead of waiting for a delay 2024-01-30 14:40:50 +01:00
AuroraWright dff32e61fd Add more cli options 2024-01-30 13:11:54 +01:00
AuroraWright 487d203080 Make screen capture configurable via CLI 2024-01-30 12:58:57 +01:00
AuroraWright 5f9bcd89f5 Fix module downloading 2024-01-30 11:25:34 +01:00
AuroraWright b2052b1200 Make apple vision and easy ocr faster 2024-01-30 11:18:31 +01:00
AuroraWright c7565b0eed Replace PaddleOCR with RapidOCR, handle errors when offline 2024-01-30 11:11:07 +01:00
AuroraWright 52c822272e Minor style changes 2024-01-29 07:38:58 +01:00
AuroraWright b655e85f47 Add workaround for https://github.com/Kalmat/PyWinCtl/pull/83 until it's merged 2024-01-28 13:52:40 +01:00
AuroraWright 2c45805318 Add window closed detection and catch SIGINT 2024-01-28 13:40:03 +01:00
AuroraWright b2474476d0 Add clarification 2024-01-28 11:17:10 +01:00
AuroraWright d3af723b44 Add an option to capture non active (but maximized) windows 2024-01-28 11:12:45 +01:00
AuroraWright b7b87beaa0 More refactoring 2024-01-28 10:31:34 +01:00
AuroraWright 7c8cf92745 Minor changes 2024-01-28 09:47:01 +01:00
AuroraWright c4b2964b29 Minor changes 2024-01-27 09:01:14 +01:00
AuroraWright 40f4eea198 Fix detection of wrong window title 2024-01-27 08:57:37 +01:00
AuroraWright 39b98d5edd Implemented window screen capture mode (only tested on macOS so far) 2024-01-27 08:44:07 +01:00
AuroraWright 181cbececa Adjust timeout again 2024-01-26 14:43:12 +01:00
AuroraWright b4c43680ec Final preparations 2024-01-26 05:23:18 +01:00
AuroraWright 5bd995fcf8 Also redundant now 2024-01-26 05:17:21 +01:00
AuroraWright c781a1c9af Update readme 2024-01-26 05:07:18 +01:00
AuroraWright ceda14aee9 Not needed anymore 2024-01-26 03:43:30 +01:00
AuroraWright a4ac68ccde Improve config parsing 2024-01-26 03:38:23 +01:00
AuroraWright 52b07d2c2f Minor changes 2024-01-26 03:14:40 +01:00
AuroraWright e61820ffff Fix stuff 2024-01-26 02:58:15 +01:00
AuroraWright 8b1d1bb10a Make user input less sluggish with large delays 2024-01-26 02:52:18 +01:00
AuroraWright ea0878bef1 Implement reading from screen capture 2024-01-26 02:02:50 +01:00
AuroraWright 3d6b7a52db Init config if not already done 2024-01-26 00:35:00 +01:00
AuroraWright 5791387e46 Allow overriding of CLI arguments in the config 2024-01-26 00:29:57 +01:00
AuroraWright 4d4aaf882e Work around quality code from Microsoft 2024-01-24 19:08:48 +01:00
AuroraWright a7282fc9b5 Update version 2024-01-24 17:33:59 +01:00
AuroraWright fb6b55ae6d Increase Lens timeout 2024-01-24 17:23:33 +01:00
AuroraWright 2296ac0fee Hi, I'm stupid 2024-01-24 17:16:46 +01:00
AuroraWright 4e7d714297 Resize image to fit within Lens API limits 2024-01-24 14:26:59 +01:00
AuroraWright a8790e106f Fix potential race condition in Windows, minor other changes 2024-01-24 06:43:37 +01:00
AuroraWright b1ac3b6438 Switch to a pyperclip fork to fix issues with Linux 2024-01-23 10:35:33 +01:00
AuroraWright 9980a43bdb grabclipboard() can raise lots of different kinds of exceptions on Linux across X11 and Wayland, can't be bothered to handle all of them 2024-01-22 16:04:32 +01:00
AuroraWright 24b02b5fc9 Prepare for publishing 2024-01-22 06:12:58 +01:00
AuroraWright 7931f6d427 Allow OCRing the same image if we are sure it has been pasted multiple times 2024-01-22 04:41:27 +01:00
AuroraWright 53920af646 Minor style changes 2024-01-22 03:09:22 +01:00
AuroraWright 59c5a327a7 Allow websocket clients connecting from other machines 2024-01-22 01:05:38 +01:00
AuroraWright 7064c813b3 Add credit for Windows clipboard code 2024-01-22 00:13:20 +01:00
AuroraWright 6461ec80f7 Add Windows native clipboard polling and a note in the readme 2024-01-21 23:47:03 +01:00
AuroraWright 70687e6b01 Switch to pyjson5 as chompjs needs manual building (especially annoyin on Windows), detect Lens errors 2024-01-21 18:30:54 +01:00
AuroraWright 01d0a94a7c More Windows fixes (sigh++) 2024-01-20 23:54:34 +01:00
AuroraWright d2f71a8129 A few Windows fixes (sigh) 2024-01-20 23:39:32 +01:00
AuroraWright 0c7d3f4045 Remove unused dependency 2024-01-20 20:46:55 +01:00
AuroraWright 7042d5344f Switch to notify-py due to issues with Windows 2024-01-20 19:50:55 +01:00
AuroraWright 11a2ead52a Lowercase some strings after parsing the config 2024-01-20 19:27:12 +01:00
AuroraWright db9bc73c96 Add OS notifications 2024-01-20 19:20:52 +01:00
AuroraWright 3dc61c6d8e Oops this is a python builtin 2024-01-20 17:16:15 +01:00
AuroraWright 19773812a9 Lens: add request timeout, handle no text being detected 2024-01-20 04:35:16 +01:00
AuroraWright 9518272a5b Implement Google Lens (thanks Viola!) 2024-01-20 02:45:29 +01:00
AuroraWright 4a11dd1178 Improve temporary pause handler 2024-01-17 18:41:38 +01:00
AuroraWright 449a3198c4 When receiving an image, return to the websocket client whether it was processed 2024-01-17 18:05:31 +01:00
AuroraWright cbbe1ded8f Fix reading images larger than 1 MB via websocket 2024-01-16 05:57:33 +01:00
AuroraWright 82837e4826 Fix readme, remove server connection warning 2024-01-15 04:24:14 +01:00
AuroraWright 475a14d218 Forgot to update part of the help page 2024-01-14 23:23:19 +01:00
AuroraWright 5905876acf Implement reading images via websocket too 2024-01-14 22:31:54 +01:00
AuroraWright 186447333e Fix websocket server termination, make websocket port configurable, move delay_secs to config, add -d parameter to delete files when reading from directory, ignore non-image files 2024-01-14 16:29:48 +01:00
AuroraWright 3b6c6d3f1f Add writing text to a websocket for the modern text hooking pages 2024-01-14 13:40:10 +01:00
AuroraWright 83a820e0ca Make output/colors configurable 2023-12-23 06:33:20 +01:00
AuroraWright 35ae78a5f6 Add missing keys in the readme 2023-12-16 05:01:42 +01:00
AuroraWright 8f7fff01a5 Add missing dependencies 2023-12-16 04:42:08 +01:00
AuroraWright 2b208b9288 Use manga_ocr as library, separate the projects, add some documentation 2023-12-16 04:37:08 +01:00
AuroraWright c0826b1837 Add way to ignore images with a clipboard flag, cleanup 2023-12-16 01:08:21 +01:00
AuroraWright a12ddfd222 Reduce macOS idle resource usage 2023-12-13 16:37:17 +01:00
AuroraWright 25d101f806 Rework stuff, add Windows 10/11 OCR 2023-12-13 11:02:51 +01:00
AuroraWright 3eb8db3a48 Add pause at startup, display current engine at startup 2023-12-09 10:01:33 +01:00
AuroraWright 2bec213534 Missed this 2023-12-07 22:46:49 +01:00
AuroraWright c0641918dd Add EasyOCR/PaddleOCR, remove unneeded stuff 2023-12-07 22:43:16 +01:00
AuroraWright aae112529b Enable language correction on apple vision (seems to help with vertical text) 2023-10-21 03:19:05 +02:00
AuroraWright be0654df42 Fix some apple vision crashes 2023-09-29 02:38:52 +02:00
AuroraWright a8682c6c27 Fix some Azure code not being indented properly 2023-09-15 12:42:30 +02:00
AuroraWright 9bfc265192 Push my mod 2023-09-15 12:10:11 +02:00