Initial commit

This commit is contained in:
Yilei JIANG
2025-07-28 18:43:47 +08:00
parent 0a6e4ab682
commit 06408ffa6a
702 changed files with 153932 additions and 0 deletions

19
UIED/logs/cfg-for-web.txt Normal file
View File

@@ -0,0 +1,19 @@
Testing image: data/input/9.png
1. detect_compo/ip_region_proposal.py
# smaller minarea 50 -> 25
line 70: uied_params = {'param-grad':5, 'param-block':5, 'param-minarea':25}
2. detect_compo/lib_ip/ip_detection.py
line 289-290 comment: # remove filter of aspect ratio
line 342-344 comment: # remove is_line check
3. detect_text_east/lib_east/eval.py
# smaller max_word_gap 10 -> 5
line 52: def merge_text(corners, max_word_gad=5) #
4. merge.py
# smaller horizontal max gap to merge lines (6,0) -> (4,0)
line 199 max_gap=(4,0)
# smaller vertical max gap to merge paragraph (0,6) -> (0,4)
line 202 max_gap=(0,6)

22
UIED/logs/log.txt Normal file
View File

@@ -0,0 +1,22 @@
16:10 8/7/2020
- Synchronized with Webapp.
- Add image inspection.
- Used No-line v1.
- No-line v2 requires bug fix with consideration of gap.
1100 23/7/2020
- Synchronized with Webapp.
1053 4/8/2020
- Synchronized with Webapp.
7/10/2020
- Extract parameters as configurable
30/10/2020
- Speed optimization (500% boost)
11/11/2020
- Revise rm_line
- Add adjustable track bar testing

View File

@@ -0,0 +1,12 @@
Optimization:
1. ip_preprocessing.py / gray_to_gradient : 0.5s -> 0.02s
2. ip_draw.py / draw_bounding_box : if not show and write_path is None: return : 0.005s -> 0s
3. ip_detection.py / component_detection : if ff[0] < min_obj_area: continue : 2.5s -> 0.3s
4. ip_detection.py / component_detection : cv2.findNonZero : 0.65s -> 0.33s
5. block_division.py / block_division : if ff[0] < 500 : continue: 1.97s -> 1s
6. block_division.py / block_division : Turn off draw : 1s -> 0.65s