CoolFace
Modelpublic

SAM69/Multi_Engine_OCR

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
readme.md53 linesDownload Raw Back to docs
1# OCR Utility2 3Welcome to the OCR Utility, where text extraction from images and documents becomes a breeze! This tool utilizes powerful libraries to help you unveil hidden words and secrets.4 5## Overview6 7The OCR Utility allows you to extract text from various file formats, including images (PNG, JPEG, TIFF) and documents (DOCX, PDF). It employs both Tesseract OCR and EasyOCR for accurate and multilingual text recognition.8 9## Features10 11- Extract text from images (PNG, JPEG, TIFF).12- Extract text from DOCX files.13- Extract text from PDF files with the help of Poppler.14- Utilize Tesseract OCR and EasyOCR for precise text recognition.15- Enhance images before processing for better results.16 17## Requirements18 19Before you start your magical journey, make sure you have the required ingredients:20 21- **Python 3.6+**: The enchanting language that powers the utility.22- **numpy**: The essence of number-crunching magic.23- **Pillow (PIL)**: Your trusty wand for image manipulation.24- **pytesseract**: The all-seeing eye for text extraction.25- **easyocr**: The ancient tome of multilingual text deciphering.26- **python-docx**: The scroll for unveiling secrets from DOCX files.27- **pdf2image**: The spellbook for converting PDFs into images.28- **Tesseract OCR**: Download and set the path to the executable.29- **Poppler for Windows**: Download and remember the path for PDF handling.30 31For detailed instructions on obtaining these ingredients, check out the [Requirements Guide](requirement.md).32 33## Usage34 351. Clone the repository to your local machine.362. Install the required Python packages using `pip install -r requirements.txt`.373. Follow the steps in the Requirements Guide to set up Tesseract OCR and Poppler for Windows.384. Run the `main.py` script and follow the prompts to extract text from your desired file.39 40## Contribution41 42Contributions are welcome! If you find issues or have ideas for improvements, feel free to open an issue or submit a pull request.43 44## Credits45 46This utility was created by [Your Name] as a project inspired by the magic of text extraction.47 48## License49 50This project is licensed under the [MIT License](LICENSE).51 52---53