├── Input image.png ├── README.md ├── Sourcecode └── img to text py project.pdf /Input image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lava1201/Image-to-textconverter-using-Python/c71a52e76fb79a69aae7c2a0c908efcb6080a0a6/Input image.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Image-to-textconverter-using-Python 2 | The primary purpose of this script is to extract text from images. It can be handy when you have images containing textual information that you want to convert into editable text format. 3 | # Installation of Libraries 4 | pip install Pillow pytesseract- Installs the Python Imaging Library (Pillow) for image processing and pytesseract, a wrapper for Tesseract OCR engine. 5 | 6 | !apt-get install tesseract-ocr- Installs the Tesseract OCR engine. 7 | 8 | !apt-get install libtesseract-dev- Installs the development files for Tesseract 9 | # Features 10 | Support for Various Image Formats-It supports various image formats including JPEG, PNG. 11 | 12 | Language Support- Tesseract OCR supports multiple languages, enabling extraction of text in different languages and scripts. 13 | -------------------------------------------------------------------------------- /Sourcecode: -------------------------------------------------------------------------------- 1 | pip install Pillow pytesseract 2 | !apt-get install tesseract-ocr 3 | !apt-get install libtesseract-dev 4 | !pip install pytesseract 5 | from PIL import Image 6 | import pytesseract 7 | 8 | # Defining path to Tesseract executable 9 | pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract" # Update this path if needed 10 | 11 | # Image path 12 | image_path = "/content/Screenshot (415).png" # Update this path 13 | 14 | # Open the image 15 | img = Image.open(image_path) 16 | 17 | # Extract text from the image 18 | text = pytesseract.image_to_string(img) 19 | 20 | # Display the extracted text 21 | print(text) 22 | -------------------------------------------------------------------------------- /img to text py project.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lava1201/Image-to-textconverter-using-Python/c71a52e76fb79a69aae7c2a0c908efcb6080a0a6/img to text py project.pdf --------------------------------------------------------------------------------