From 14c588e162a2024f7eb81fc57a7f5c65a56e7fb5 Mon Sep 17 00:00:00 2001 From: vahid Date: Tue, 13 Jul 2021 10:12:18 -0400 Subject: [PATCH] resolving an issue --- qurator/eynollah/eynollah.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qurator/eynollah/eynollah.py b/qurator/eynollah/eynollah.py index ea4a60b..52d235b 100644 --- a/qurator/eynollah/eynollah.py +++ b/qurator/eynollah/eynollah.py @@ -2158,6 +2158,10 @@ class Eynollah: regions_without_separators_d=(text_regions_p_1_n[:,:] == 1)*1 regions_without_separators_d[table_prediction_n[:,:] == 1] = 1 + else: + text_regions_p_1_n = None + textline_mask_tot_d = None + regions_without_separators_d = None regions_without_separators = (text_regions_p[:,:] == 1)*1#( (text_regions_p[:,:]==1) | (text_regions_p[:,:]==2) )*1 #self.return_regions_without_seperators_new(text_regions_p[:,:,0],img_only_regions) regions_without_separators[table_prediction == 1] = 1