Skip to content

Commit 704d8dc

Browse files
committed
Add a return comment for the check_img function
1 parent 46a94d5 commit 704d8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddleocr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def check_img(img, alpha_color=(255, 255, 255)):
559559
file format: jpg, png and other image formats that opencv can decode, as well as gif and pdf formats
560560
storage type: binary image, net image file, local image file
561561
alpha_color: Background color in images in RGBA format
562-
return: numpy.array (h, w, 3)
562+
return: numpy.array (h, w, 3) or list (p, h, w, 3) (p: page of pdf), boolean, boolean
563563
"""
564564
flag_gif, flag_pdf = False, False
565565
if isinstance(img, bytes):

0 commit comments

Comments
 (0)