def getFeat(imgPath):
img = cv2.imread(imgPath)
img = (img - 128.0) / 128.0
img = img.transpose((2,0,1))
img = img[None,:] # add singleton dimension
out = net.forward_all( data = img ) # out is probability
return out['fc5'][0]
SphereFace python抽取人脸特征
最新推荐文章于 2023-06-29 10:04:06 发布