Summary: | Feature rq: automatic image to text copying | ||
---|---|---|---|
Product: | [Applications] Spectacle | Reporter: | ostap-tymur-tymchenko <ostap.tymchenko> |
Component: | General | Assignee: | Boudhayan Gupta <me> |
Status: | RESOLVED DUPLICATE | ||
Severity: | wishlist | CC: | akid.anis799, kde, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
ostap-tymur-tymchenko
2022-12-18 01:29:01 UTC
*** This bug has been marked as a duplicate of bug 460320 *** as a workaround one could try to use this command for OCR with spectacle: you could bind this command to a keybind in settings For X11: `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract stdin stdout | xclip -in -selection clipboard` For Wayland: `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract stdin stdout | wl-copy` I attempted to run `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract stdin stdout | xclip -in -selection clipboard` on an x11 system, and after fixing an error with not having tesseract installed, it not just says "Error during processing". I have tried a couple of different scenarios and in all cases that is what it says, with nothing being copied to clipboard. (In reply to akid.anis799 from comment #2) > as a workaround one could try to use this command for OCR with spectacle: > > you could bind this command to a keybind in settings > > For X11: > `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract > stdin stdout | xclip -in -selection clipboard` > > For Wayland: > `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract > stdin stdout | wl-copy` |