今天爱分享给大家带来Assertion failed (_queryDescriptors.type() == trainDescType) in cv【解决方法】,希望能够帮助到大家。
错误
OpenCV(3.4.1) Error: Assertion failed (_queryDescriptors.type() == trainDescType) in cv::BFMatcher::knnMatchImpl, file C:\projects\opencv-python\opencv\modules\features2d\src\matchers.cpp, line 744 Traceback (most recent call last): cv2.error: OpenCV(3.4.1) C:\projects\opencv-python\opencv\modules\features2d\src\matchers.cpp:744: error: (-215) _queryDescriptors.type() == trainDescType in function cv::BFMatcher::knnMatchImpl
原因
BFmatcher找不到匹配点,送进来匹配的两个图的特征基本上没有可以匹配的地方,检查图片本身是否经过处理后存在问题,或者本身两幅图就无法匹配。
原文链接:http://blog.itblood.com/2500.html,转载请注明出处。

![牛奶触觉Final AI重翻版[PC+安卓/3.69G/更新] [精品SLG/汉化/动态]](/wp-content/uploads/replace/2025/07/19/e2a9c66dabcff850c740d8d91ced3c68.webp)