Commit Graph
100 Commits
Author SHA1 Message Date
AuroraWright e16d484d1b Update dependencies 2024-02-29 17:41:41 +01:00
AuroraWright 638b989ebb Use native macOS/Windows apis for grabbing windows 2024-02-29 17:38:51 +01:00
AuroraWright 7a5b66d611 Improve logic 2024-02-29 07:01:40 +01:00
AuroraWright 40e744a0a3 Use a native method for window tracking on macOS 2024-02-29 05:11:10 +01:00
AuroraWright c361747e69 Fix macos memory leaks 2024-02-27 10:37:00 +01:00
AuroraWright 608e97c974 Add timeout for live text 2024-02-27 08:55:15 +01:00
AuroraWright 1586ccdaf6 Implement reading from unix sockets 2024-02-24 08:29:40 +01:00
AuroraWright c72a24147b Minor changes 2024-02-20 03:05:51 +01:00
AuroraWright 1d142eee8f Update version 2024-02-18 14:56:24 +01:00
AuroraWright 3772259007 Hopefully fix the macOS clipboard stuff for good 2024-02-16 12:30:01 +01:00
AuroraWright 11728e1070 Clarify further for macOS notifications 2024-02-16 09:52:28 +01:00
AuroraWright a6b3087317 Make Lens cooperate a bit more 2024-02-16 09:49:50 +01:00
AuroraWright b48b358f86 Improve readme 2024-02-15 02:20:02 +01:00
AuroraWright 10d7f69f78 Switch back to desktop-notifier 2024-02-12 22:58:17 +01:00
AuroraWright eec4484217 Add option for CPU only in EasyOCR 2024-02-12 01:56:07 -05:00
AuroraWright 6fb4aa4b12 Fix check 2024-02-12 01:02:21 -05:00
AuroraWright 3aa1be2d4e Save me from the Sonoma pain 2024-02-12 00:52:16 -05:00
AuroraWright b0a68b643c Put up with Sonoma being silly 2024-02-11 20:38:22 -05:00
AuroraWright d693e7563a Use CF methods for now 2024-02-11 19:47:06 -05:00
AuroraWright dd35140f76 Jumped the gun about this too soon (yay undocumented APIs) 2024-02-11 18:32:43 +01:00
AuroraWright 3b60ee8674 Strip trailing newlines from live text 2024-02-11 13:50:42 +01:00
AuroraWright 4b998d24c3 Properly chmod helper executable 2024-02-11 13:24:17 +01:00
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