ChatCrawlersearch across public Telegram Open the app
P

Python Programmers Group

сообщение · 2024-08-15 20:13 UTC
P
Replymessage unavailable
import cv2 from PIL import Image import pytesseract # مسیر به فایل تصویر کپچا captcha_image_path = 'captcha_image.png' # بارگذاری تصویر image = cv2.imread(captcha_image_path) # تبدیل به خاکستری gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # باینری کردن تصویر _, binary = cv2.threshold(gray, 150, 255, cv2.THRESH_BINARY_INV) # ذخیره تصویر پیش‌پردازش‌شده (اختیاری) cv2.imwrite('processed_captcha.png', binary) # تشخیص متن با استفاده از pytesseract text = pytesseract.image_to_string(binary) print("متن شناسایی‌شده:", text) ببین این کار میکنه

Вся лента · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog