def rknn_detection(image):
rknn = RKNN()
print('--> Load RKNN Model')
ret = rknn.load_rknn('./Person_ASSD_noquantization-caffe.rknn')
if ret != 0:
print('load rknn model failed')
exit(ret)
else:
print('load rknn model done')
print('---->begin init runtime')
ret = rknn.init_runtime(target=None)
if ret == 0:
print('init run time success')
else:
print('init runtime failed')