First commit OCR_earsing and Synthetics Handwritten Recognition awesome repo
This commit is contained in:
20
OCR_earsing/README.md
Normal file
20
OCR_earsing/README.md
Normal 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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user