Comments (5)
Hi, thanks for raising this issue. It is likely caused by a lack of permissions to capture the screen. You can fix this by going to System Preferences > Security & Privacy > Privacy > Screen Recording, then checking the box for Terminal/iTerm. If this fixes the issue, I would be happy to add a note to the README for future users.
The message that you are getting does not affect functionality, but this StackOverflow question has some potential fixes.
from textshot.
Thanks for the quick reply. I suspected it was permissions related but was not sure how to give textshot permission, allowing the terminal makes sense. Allowing iTerm fixed this problem, but now it's unable to read text from image. I have all the requirements downloaded, not sure what's wrong this time.
INFO: Unable to read text from image, did not copy
from textshot.
It works fine on that given text for me. Does it work on some basic text? Like a few words with black letters on a white background? Regardless, you can try two things:
- adding
pil_img.show()
after line 84 intextshot.py
as debugging to see if the correct portion of the screen is being captured - increasing the
timeout
by editing line 88 intextshot.py
to give more time for the OCR software to recognize the text (I doubt that this is the problem unless your computer is extremely old)
It is to be expected that it does not work on all images of text given that OCR is rather fragile if it is not fine-tuned to work on specific types of images. TextShot does not do any of this fine-tuning in order to cater to all types of images.
from textshot.
I was having the same issue. Although not making sense, but a clean install fixed it for me.
from textshot.
Closing because the original issue has been solved and inactivity, also added note to README
from textshot.
Related Issues (20)
- Cropping depends on screen resolution HOT 6
- Text not being copied to clipboard and sometimes words are translated to french language ! HOT 8
- textshot on macOS Big Sur HOT 3
- I'm too dumb and autistic to make this thing work pls help HOT 4
- Windows defender started recognizing executable file from AutoHotkey script as trojan.
- Windows defender started recognizing executable file from AutoHotkey script as trojan. HOT 2
- Error HOT 2
- Selection not from upper left corner
- Size limitation for text, and sometimes prior OCR conversion in clipboard is not replaced with new OCR conversion HOT 4
- Screen turns black when opening textshot HOT 6
- Consider adding pyproject.toml for package installation HOT 1
- screenshot "E:\>cd github" output -->"INFO: Copied "AR" to the clipboard" HOT 3
- [Feature suggestion] Add an auto magnification HOT 3
- ERROR: Unable to read text from image, did not copy HOT 2
- Doesn't work in multi-monitor setup
- Does this repo support Chinese? HOT 1
- Doesn't support MacBook Fullscreen HOT 2
- Segmentation fault, (core dumped) HOT 1
- how to get facebook information
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textshot.