comment review
This commit is contained in:
parent
6594bc28b0
commit
309a4758d1
|
@ -94,7 +94,7 @@ class TextRecognizer(object):
|
||||||
|
|
||||||
def resize_norm_img(self, img, max_wh_ratio):
|
def resize_norm_img(self, img, max_wh_ratio):
|
||||||
imgC, imgH, imgW = self.rec_image_shape
|
imgC, imgH, imgW = self.rec_image_shape
|
||||||
if imgC == 1:
|
if self.rec_algorithm == 'NRTR':
|
||||||
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
|
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
|
||||||
# return padding_im
|
# return padding_im
|
||||||
image_pil = Image.fromarray(np.uint8(img))
|
image_pil = Image.fromarray(np.uint8(img))
|
||||||
|
|
Loading…
Reference in New Issue