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

2025-04-04 14:37:49
推荐回答(1个)
回答1:

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
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需要更多的参数,你没有提供。
调用函数参数传的不对