Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: OCR doesn't work #406

Closed
xiaoming-w opened this issue Jan 31, 2024 · 9 comments
Closed

[Bug]: OCR doesn't work #406

xiaoming-w opened this issue Jan 31, 2024 · 9 comments
Assignees
Labels
bug Something isn't working OCR pending

Comments

@xiaoming-w
Copy link

xiaoming-w commented Jan 31, 2024

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 xiaoming-w added the bug Something isn't working label Jan 31, 2024
@github-actions github-actions bot added the OCR label Jan 31, 2024
@xiaoming-w
Copy link
Author

I have installed both pngpaste and node with brew through terminal

@alanhe421
Copy link
Owner

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.

@xiaoming-w
Copy link
Author

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

@alanhe421
Copy link
Owner

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

@xiaoming-w
Copy link
Author

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

@alanhe421
Copy link
Owner

alanhe421 commented Feb 8, 2024

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.

@xiaoming-w
Copy link
Author

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

@alanhe421
Copy link
Owner

alanhe421 commented Feb 9, 2024

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#效果

@xiaoming-w
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OCR pending
Projects
None yet
Development

No branches or pull requests

2 participants