From 28d47428a84bd7732986290a2fc2cb41d463c846 Mon Sep 17 00:00:00 2001 From: "sandipsamal117@gmail.com" Date: Tue, 30 Apr 2024 11:13:43 -0400 Subject: [PATCH] added generic condition for date tags --- image_textRemove.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image_textRemove.py b/image_textRemove.py index 0b48055..0b38bcf 100755 --- a/image_textRemove.py +++ b/image_textRemove.py @@ -16,7 +16,7 @@ from difflib import SequenceMatcher import hashlib -__version__ = '1.1.8' +__version__ = '1.2.0' DISPLAY_TITLE = r""" _ _ _ _ ______ @@ -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]