result, dists = flann.knnSearch(testdata, kNN, params = {})
cv2.error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\flann\src\miniflann.cpp:488: error: (-215:Assertion failed) query.type() == type && indices.type() == CV_32S && dists.type() == dtype in function 'cv::flann::runKnnSearch_'
I got this error on the first line