Commit 7877da8f authored by yangql's avatar yangql
Browse files

Update Python/Classifier.py

parent 81c0c75a
......@@ -2,10 +2,8 @@
"""
分类器示例
"""
import cv2
import numpy as np
import onnxruntime as ort
def Preprocessing(pathOfImage):
......@@ -44,7 +42,6 @@ def Preprocessing(pathOfImage):
norm_img_data = norm_img_data.reshape(1, 3, 224, 224).astype('float32')
return norm_img_data
def postprocess(scores):
'''
Postprocessing with mxnet gluon
......@@ -57,7 +54,6 @@ def postprocess(scores):
a = np.argsort(preds)[::-1]
print('class=%s ; probability=%f' %(labels[a[0]],preds[a[0]]))
def ort_seg_dcu(model_path,image):
#创建sess_options
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment