2020
10-09
10-09
Python实现Canny及Hough算法代码实例解析
任务说明:编写一个钱币定位系统,其不仅能够检测出输入图像中各个钱币的边缘,同时,还能给出各个钱币的圆心坐标与半径。效果代码实现Canny边缘检测:#Author:JiQiu(BUPT)#filename:my_canny.pyimportcv2importnumpyasnpclassCanny:def__init__(self,Guassian_kernal_size,img,HT_high_threshold,HT_low_threshold):''':paramGuassian_kernal_size:高斯滤波器尺寸:paramimg:输入的图片,在算...
继续阅读 >