Skip to content

Commit 28d4742

Browse files
committed
added generic condition for date tags
1 parent 52eca3b commit 28d4742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

image_textRemove.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from difflib import SequenceMatcher
1717
import hashlib
1818

19-
__version__ = '1.1.8'
19+
__version__ = '1.2.0'
2020

2121
DISPLAY_TITLE = r"""
2222
_ _ _ _ ______
@@ -121,7 +121,7 @@ def inpaint_text(img_path, data, box_list, similarity_threshold):
121121
real_name = data.get(item).split('^')
122122
for i in range(len(real_name)):
123123
word_list.append(real_name[i])
124-
elif item == 'PatientBirthDate':
124+
elif 'Date' in item:
125125
yyyy = data.get(item)[0:4]
126126
mm = data.get(item)[4:6]
127127
dd = data.get(item)[6:8]

0 commit comments

Comments
 (0)