def BlockLBPH(img,minValue,maxValue,normed=True):
'''????????LBP?????'''
#?????bin???
histSize=[maxValue-minValue+1]
ranges=[minValue,maxValue+1]
result=cv2.calcHist(img,[0],None,histSize,ranges)
#???
if normed:
result=result/(int)(img.shape[0]*img.shape[1])
return result.reshape(1,-1)
评论列表
文章目录