import pytesseract
# Open the image using PIL
image = Image.open(«bathroom.jpg»)
# Extract the text from the image using PyTesseract
text = pytesseract.image_to_string(image)
# Print the extracted text
print(text)
Строительство и Ремонт
import pytesseract
# Open the image using PIL
image = Image.open(«bathroom.jpg»)
# Extract the text from the image using PyTesseract
text = pytesseract.image_to_string(image)
# Print the extracted text
print(text)