Comments (3)
%pip install pytesseract
import uiautomator2 as u2
import pytesseract as pt
pt.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
d = u2.connect()
screenshot = d.screenshot()
obj = d(resourceId="com.instagram.android:id/row_feed_photo_profile_name")
bounds = obj.info["bounds"]
screenshot_cropped = screenshot.crop([bounds.get("left"), bounds.get("top"), bounds.get("right"), bounds.get("bottom")])
screenshot_cropped.show()
text = pt.image_to_string(screenshot_cropped)
print(text)
from bot.
Hey there,
I get this error and I think this is related to this topic.
[03/18 18:31:47] INFO | Scroll down to see next post.
[03/18 18:31:50] INFO | Can't find the owner name, need to use OCR.
[03/18 18:31:51] ERROR | You need to install Tesseract (the engine: it depends on your system) in order to use OCR feature.
[03/18 18:31:51] ERROR | Traceback (most recent call last):
I tried to install tesseract but seems like I failed. How can I resolve this issue ?
from bot.
the bot shouldn't crash with 3.2.12. update
from bot.
Related Issues (20)
- Unable to install requirements HOT 2
- Always stopped by time delta HOT 3
- Can't use filter HOT 4
- can`t intall GramAddict HOT 4
- [Feature request] Auto upload for professional accounts HOT 1
- Failed to check if comment succeed. HOT 1
- gramaddict init "MyUsername" - Does not download the default settings to user
- ModuleNotFoundError: No module named 'pkg_resources' HOT 3
- Uiautomator started failed
- I got this error the first time I started
- ChunkedEncodingError HOT 1
- uiautomator2 crashes when sessions starts
- Error parser py
- WARNING | Can't find SEND button! HOT 2
- Follow-percentage not 100% warning
- config.yml problem HOT 1
- Check and PM New followers
- AttributeError: module 'uiautomator2' has no attribute 'JSONRPCError' HOT 1
- Tesseract/packaging bug
- Unfollow ignoring unfollow delay?
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 bot.