Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hooni238/persian-video-ocr
Persian video ocr is a python code that performs OCR on video frames.
https://github.com/hooni238/persian-video-ocr
Last synced: 3 months ago
JSON representation
Persian video ocr is a python code that performs OCR on video frames.
- Host: GitHub
- URL: https://github.com/hooni238/persian-video-ocr
- Owner: hooni238
- Created: 2023-06-06T14:04:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-06T14:42:51.000Z (over 1 year ago)
- Last Synced: 2024-02-11T16:19:42.819Z (9 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# persian-video-ocr
Persian video ocr is a python code that performs OCR on video frames.# OCR Video Frames with Tesseract
This code reads frames from a video file, performs OCR on each frame using Tesseract, and writes the output to a text file.
## Installation
To run this code, you will need to have the following libraries installed:
- cv2
- pytesseractYou can install these libraries using pip:
$ apt-get install tesseract-ocr libtesseract-dev libleptonica-dev pkg-config
$ pip install opencv-python pytesseract
Also, you need to install Persian Tesseract-OCR:
$ sudo apt-get install tesseract-ocr-fasYou can find more about TesserOCR from the [TesserOCR repository](https://pypi.org/project/tesserocr/). You can find other languages from [here](https://github.com/tesseract-ocr/tessdoc/blob/main/Data-Files.md).
## Usage
To use this code, run the following command:
$ python main.py --input MyVideo_1.mp4
The `--input` parameter specifies the path to the input video file.
The output.txt contain the extracted text.## Contributing
If you find a bug or have a feature request, please [open an issue](https://github.com/hooni238/persian-video-ocr/issues).