Add screenshot OCR functionality with Minimal Dependencies (#1918)
* Add script to capture screenshot, perform OCR, and copy text to clipboard * Add binding for screenshot-ocr * Update OCR binding description * Add tesseract OCR and language data installation * Update bindings to current dev * Refactor screenshot capture method to use wayfreeze and slurp for region selection * Refactor OCR text extraction to simplify error handling * Bring up to date --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
co-authored by
David Heinemeier Hansson
parent
fcf742a3a1
commit
75eec08758
+2
-1
@@ -103,9 +103,10 @@ show_trigger_menu() {
|
||||
}
|
||||
|
||||
show_capture_menu() {
|
||||
case $(menu "Capture" " Screenshot\n Screenrecord\n Color") in
|
||||
case $(menu "Capture" " Screenshot\n Screenrecord\n Text Extraction\n Color") in
|
||||
*Screenshot*) omarchy-capture-screenshot ;;
|
||||
*Screenrecord*) show_screenrecord_menu ;;
|
||||
*Text*) omarchy-capture-text-extraction ;;
|
||||
*Color*) pkill hyprpicker || hyprpicker -a ;;
|
||||
*) back_to show_trigger_menu ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user