python-opencv程序运行时遇到一个问题,求助

 zoegreen@zoegreen-Lenovo-IdeaPad-Y470:~/桌面/vacation-image-search-engine$ python index.py --dataset dataset --index index.csv
Traceback (most recent call last):
  File "index.py", line 32, in <module>
    features = cd.describe(image)
  File "/home/zoegreen/桌面/vacation-image-search-engine/pyimagesearch/colordescriptor.py", line 41, in describe
    hist = self.histogram(image, cornerMask)
  File "/home/zoegreen/桌面/vacation-image-search-engine/pyimagesearch/colordescriptor.py", line 58, in histogram
    hist = cv2.normalize(hist).flatten()
TypeError: Required argument 'dst' (pos 2) not found

你调用的index.py需要更多的参数,你没有提供。

调用函数参数传的不对

参加这个连接:http://python.jobbole.com/80860/

opencv2和3之间的小坑:hist = cv2.normalize(hist).flatten()改为hist = cv2.normalize(hist,hist).flatten()