Advertisement
Rnery

Extrair o texto da imagem..

Dec 30th, 2021 (edited)
218
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | Source Code | 1 0
  1. #!/usr/bin/env python3
  2.  
  3. from PIL import Image # Importa o módulo Pillow
  4.  
  5. import pytesseract # Módulo para a utilização da tecnologia OCR
  6.  
  7. print( pytesseract.image_to_string( Image.open('nome_da_imagem.jpg') ) ) # Extraindo o texto da imagem
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement