if __name__ =="__main__":
img_path=r"./smoke/allsmoke/image_3.jpg"
#img_path='./data/imagePart_train/smoke/allsmoke/image_3.jpg'
img = cv2.imread(img_path)
print(img.shape)
f=getFeature(img, 5)
print(f)
python各种问题:'NoneType' object has no attribute 'shape';Expected 2D array, got 1D array instead:
问题1: print(img.shape)
猜你喜欢
转载自blog.csdn.net/jiangsujiangjiang/article/details/84188071
今日推荐
周排行