今天爱分享给大家带来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找不到匹配点,送进来匹配的两个图的特征基本上没有可以匹配的地方,检查图片本身是否经过处理后存在问题,或者本身两幅图就无法匹配。
原文链接:https://itblood.website/2500.html,转载请注明出处。

![AV导演生活!-请拍下各种模样的我 Ver1.034 官方中文步兵版[电脑/3.59G] [互动SLG/3D/官中/NTR]](/wp-content/uploads/replace/2025/07/19/89f1c9c7b6e1a7a359b7193cf4f1a7bf.webp)