MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleOCR / read_images

Method read_images

deploy/hubserving/structure_table/module.py:85–96  ·  view source on GitHub ↗
(self, paths=[])

Source from the content-addressed store, hash-verified

83 return cfg
84
85 def read_images(self, paths=[]):
86 images = []
87 for img_path in paths:
88 assert os.path.isfile(img_path), "The {} isn't a valid file.".format(
89 img_path
90 )
91 img = cv2.imread(img_path)
92 if img is None:
93 logger.info("error in loading image:{}".format(img_path))
94 continue
95 images.append(img)
96 return images
97
98 def predict(self, images=[], paths=[]):
99 """

Callers 1

predictMethod · 0.95

Calls 2

formatMethod · 0.80
imreadMethod · 0.80

Tested by

no test coverage detected