解决问题
Traceback (most recent call last):
File "search.py", line 24, in <module>
Hog_HanMing_Distance_res=Hog_HanMing_Distance(img01,img02)
File "/root/***/package.py", line 59, in Hog_Distance
image1=Image.fromarray(cv2.cvtColor(image01,cv2.COLOR_BGR2RGB))
cv2.error: OpenCV(4.1.2) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
解决方法
90%的问题出现在路径上!先查看路径是否出错,再查看文件本身是否有错误!