comment review

This commit is contained in:
Topdu 2021-09-14 05:06:53 +00:00
parent 6594bc28b0
commit 309a4758d1
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class TextRecognizer(object):
def resize_norm_img(self, img, max_wh_ratio):
imgC, imgH, imgW = self.rec_image_shape
if imgC == 1:
if self.rec_algorithm == 'NRTR':
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# return padding_im
image_pil = Image.fromarray(np.uint8(img))