First commit OCR_earsing and Synthetics Handwritten Recognition awesome repo

This commit is contained in:
2024-09-16 19:11:05 +07:00
parent d27ba1890b
commit 17aa33a17a
72 changed files with 12419 additions and 1 deletions

20
OCR_earsing/README.md Normal file
View File

@@ -0,0 +1,20 @@
# OCR Earsing
This repository contains the code for erasing the OCR text from the images. Code is written based on
[OCR_SAM]("https://github.com/yeungchenwa/OCR-SAM")
Have 2 method to earse the text from the image:
- Traditional method: using the bounding box of the text to earse the text, and use function OpenCV to earse the text.
- Deep learning method: using the bounding box of the text, segment the text based on [SAM]("https://github.com/facebookresearch/segment-anything") (Segment Anything) and use diffuse model to earse the text.
In my code, I use the deep learning method to earse the text from the image.
## Installation
```shell
pip install -r requirements.txt
```
## Run
```shell
python ocr_eraser.py
```