https://github.com/jingshing-python/detectwordfromimage
A simple method to get word from image. Using pytesseract.
https://github.com/jingshing-python/detectwordfromimage
detection python
Last synced: 10 months ago
JSON representation
A simple method to get word from image. Using pytesseract.
- Host: GitHub
- URL: https://github.com/jingshing-python/detectwordfromimage
- Owner: JingShing-Python
- License: mit
- Created: 2023-07-14T03:22:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T03:33:08.000Z (over 2 years ago)
- Last Synced: 2025-01-25T23:41:02.371Z (12 months ago)
- Topics: detection, python
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
English | [繁體中文](README_TCH.md)
# DetectWordFromImage
A simple method to get word from image. Using pytesseract.
# Usage
You can using this script to get word from your image.
# Before start
## tesseract
You need to install [tesseract](https://github.com/UB-Mannheim/tesseract/wiki) before using the script.
In default it will be english detect only. So if you want get more language to detect it can be download in here: [traineddata](https://github.com/tesseract-ocr/tessdata/tree/main).
And you can put these data set in the ```path_you_install\Tesseract-OCR\tessdata\``` folder.
I highly recommend you to put ```path_you_install\Tesseract-OCR\``` this folder to your system path to easily using the script. Or you will need to add a line in the code:
```py
pytesseract.pytesseract.tesseract_cmd = r'path:\Tesseract-OCR\tesseract.exe'
```
## python modules
You will need to install these python module:
```cmd
pip install pillow
pip install pytesseract
```
And I recommend to install opencv for image editing to get better effect:
```cmd
pip install opencv-python
```