Skip to content

Commit

Permalink
added generic condition for date tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Apr 30, 2024
1 parent 52eca3b commit 28d4742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image_textRemove.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from difflib import SequenceMatcher
import hashlib

__version__ = '1.1.8'
__version__ = '1.2.0'

DISPLAY_TITLE = r"""
_ _ _ _ ______
Expand Down Expand Up @@ -121,7 +121,7 @@ def inpaint_text(img_path, data, box_list, similarity_threshold):
real_name = data.get(item).split('^')
for i in range(len(real_name)):
word_list.append(real_name[i])
elif item == 'PatientBirthDate':
elif 'Date' in item:
yyyy = data.get(item)[0:4]
mm = data.get(item)[4:6]
dd = data.get(item)[6:8]
Expand Down

0 comments on commit 28d4742

Please sign in to comment.