Opencv cornerHarris公司

2024-06-07 10:37:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在as munities中检测指纹识别的兴趣点(关键点):

import cv2 as cv
import numpy as np
input = cv.imread("C:\Users\ADNAN\Desktop\FingClass.png");
input2 = cv.threshold(input,127,255,cv.THRESH_BINARY)[1];
dst = cv.cornerHarris(input2,2,3,0.04);

但是cornerHarris犯了个我不明白的错误

^{pr2}$

Tags: importnumpyinputasnpcv2userscv
1条回答
网友
1楼 · 发布于 2024-06-07 10:37:49

你可能必须包括

input2= np.float32(input2)

在处决你的角落哈里斯之前。在

在这里查看更多详细信息和示例代码以及示例图像: http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_feature2d/py_features_harris/py_features_harris.html

你可以张贴你的图片,如果仍然不起作用。在

您正在使用什么版本的OpenCV?在

相关问题 更多 >

    热门问题