augmented-reality icon indicating copy to clipboard operation
augmented-reality copied to clipboard

An error occurred when running ar_main.py. How to resolve it

Open kungfumaster5 opened this issue 11 months ago • 1 comments

matches = bf.match(des_model, des_frame)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\batch_distance.cpp:275: error: (-215:Assertion failed) type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U) in function 'cv::batchDistance'

kungfumaster5 avatar Mar 20 '24 06:03 kungfumaster5

Another background for the occurrence of this error is that when a small card is not detected or the card is unclear, the program will automatically stop running and the same error will be displayed afterwards

kungfumaster5 avatar Mar 20 '24 13:03 kungfumaster5