alfred-workflows icon indicating copy to clipboard operation
alfred-workflows copied to clipboard

[Bug]: OCR doesn't work

Open xiaoming-w opened this issue 1 year ago • 2 comments

Describe the bug

image

Workflow Name

OCR

Alfred Version

v5.1.4

MacOS Version

macOS 14 Sonoma

Mac Chip

Apple Silicon (like M1, M2)

MacOS Locale

EN


Workflow Homepage is 👉 OCR

xiaoming-w avatar Jan 31 '24 06:01 xiaoming-w

I have installed both pngpaste and node with brew through terminal

xiaoming-w avatar Jan 31 '24 06:01 xiaoming-w

I have installed both pngpaste and node with brew through terminal

image

I think you need to execute the screenshot command to print it out.

alanhe421 avatar Jan 31 '24 10:01 alanhe421

I have installed both pngpaste and node with brew through terminal

image

I think you need to execute the screenshot command to print it out.

I tried it in the terminal and it didn't work: image I have installed these two packages: pngpaste and node, but somehow they're not in the correct folder

xiaoming-w avatar Feb 01 '24 05:02 xiaoming-w

image I think you should print out the location of your commands after installation, so I can understand why it's not in the target path I'm aware of. Otherwise, how would the program know?

which node

which pngpaste

alanhe421 avatar Feb 03 '24 01:02 alanhe421

Hi Alan, thanks for the reply, please see below my screenshot: image

it seems these two packages were installed in my homebrew folder, what should I do next to have them in the proper location?

Thanks

xiaoming-w avatar Feb 08 '24 07:02 xiaoming-w

Hi Alan, thanks for the reply, please see below my screenshot: image

it seems these two packages were installed in my homebrew folder, what should I do next to have them in the proper location?

Thanks

I have updated the version, just try installing it, and if there are still issues, reopen the issue.

Thank you.

The new OCR workflow use built-in OCR. faster and no limit.

alanhe421 avatar Feb 08 '24 10:02 alanhe421

I've updated to your latest version, but it still doesn't seem to work.

I added it to the Shortcuts, but couldn't paste it for some reason, and I didn't see these two windows as in your homepage when I was adding OCR to the Shortcuts: image

when I double click on the newly added OCR shortcut, I see this window: image

xiaoming-w avatar Feb 08 '24 18:02 xiaoming-w

After the first OCR trigger, you will be prompted to install. After triggering OCR again, select the screen area and press Enter to perform OCR and retrieve the text. There will be a prompt for permission, just keep clicking allow, and you will not be prompted again in future use. Using Alfred workflow inevitably requires understanding the workflow.

Additionally, take a look at this GIF animation: https://github.com/alanhg/alfred-workflows/tree/master/ocr#效果

alanhe421 avatar Feb 09 '24 02:02 alanhe421

so I reinstalled the OCR shorcut, and clicked "allow" on the first privacy window, but I did not see the second privacy window.
The OCR tool still doesn't work. After selecting the text on the image, there isn't a text editor popping up like in your gif presentation, and I could neither paste the text anywhere else.

xiaoming-w avatar Feb 09 '24 03:02 xiaoming-w