MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / run

Method run

tools/infer/onnx_engine.py:61–65  ·  view source on GitHub ↗
(self, image_numpy)

Source from the content-addressed store, hash-verified

59 return input_feed
60
61 def run(self, image_numpy):
62 # 输入数据的类型必须与模型一致,以下三种写法都是可以的
63 input_feed = self.get_input_feed(self.input_name, image_numpy)
64 result = self.onnx_session.run(self.output_name, input_feed=input_feed)
65 return result

Callers 8

build_wheelFunction · 0.80
test_command_lineMethod · 0.80
_inference_onnxMethod · 0.80
__call__Method · 0.80
encode_imageMethod · 0.80
decode_stepMethod · 0.80
_inference_onnxMethod · 0.80
__call__Method · 0.80

Calls 1

get_input_feedMethod · 0.95

Tested by 1

test_command_lineMethod · 0.64