Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python DescriptorMatcher.match()中的奇怪行为_Python_Opencv_Image Processing - Fatal编程技术网

Python DescriptorMatcher.match()中的奇怪行为

Python DescriptorMatcher.match()中的奇怪行为,python,opencv,image-processing,Python,Opencv,Image Processing,我犯了个错误 TypeError:DescriptorMatcher.match()最多接受2个关键字参数(给定3个) 使用 此功能的文档如下所示: 它明确指出第三个论点是可以接受的: matches=cv.descriptor.match(查询描述符、列车描述符[,掩码]) 有人知道发生了什么吗?我想这些是位置参数。bf.match(featuresA、featuresB、masks)有效吗?同样的错误。我也试过用“mask”代替“masks”,有没有办法强迫它使用重载函数的正确版本?自动参

我犯了个错误

TypeError:DescriptorMatcher.match()最多接受2个关键字参数(给定3个)

使用

此功能的文档如下所示:

它明确指出第三个论点是可以接受的:

matches=cv.descriptor.match(查询描述符、列车描述符[,掩码])


有人知道发生了什么吗?

我想这些是位置参数。
bf.match(featuresA、featuresB、masks)
有效吗?同样的错误。我也试过用“mask”代替“masks”,有没有办法强迫它使用重载函数的正确版本?自动参数检测功能显然无法正常工作
bf = createMatcher(method, crossCheck=True)
bf.match(queryDescriptors=featuresA, trainDescriptors=featuresB, mask=masks)