🚀 Somewhat working version

This commit is contained in:
2021-04-06 03:44:09 +03:00
parent 8dbc53330d
commit eacb568dc7
4 changed files with 63 additions and 22 deletions

9
utils/detect.py Normal file
View File

@@ -0,0 +1,9 @@
import pytesseract
from PIL import Image
import io
import requests
def detect(url):
response = requests.get(url)
img = Image.open(io.BytesIO(response.content))
return pytesseract.image_to_string(img).lower()