当前位置: 首页 > news >正文

优设计网站网站定制开发内容

优设计网站,网站定制开发内容,郑州小程序网站开发,wordpress收录pOpenCV官方教程中文版 —— Hough 圆环变换 前言Hough 圆环变换 前言 目标 • 学习使用霍夫变换在图像中找圆形#xff08;环#xff09; • 学习函数#xff1a;cv2.HoughCircles() Hough 圆环变换 opencv_logo.png#xff1a; # -*- coding: utf-8 -*- import cv2 … OpenCV官方教程中文版 —— Hough 圆环变换 前言Hough 圆环变换 前言 目标 • 学习使用霍夫变换在图像中找圆形环 • 学习函数cv2.HoughCircles() Hough 圆环变换 opencv_logo.png # -*- coding: utf-8 -*- import cv2 import numpy as np from matplotlib import pyplot as plt img cv2.imread(opencv_logo.png, 0) img cv2.medianBlur(img, 5) cimg cv2.cvtColor(img, cv2.COLOR_GRAY2BGR) circles cv2.HoughCircles(img, cv2.HOUGH_GRADIENT, 1, 20,param150, param240, minRadius0, maxRadius0) circles np.uint16(np.around(circles)) for i in circles[0, :]:# draw the outer circlecv2.circle(cimg, (i[0], i[1]), i[2], (0, 255, 0), 2)# draw the center of the circlecv2.circle(cimg, (i[0], i[1]), 2, (0, 0, 255), 3)plt.figure() plt.subplot(121) plt.imshow(img, cmapgray) plt.xticks([]), plt.yticks([]) # to hide tick values on X and Y axis plt.subplot(122) plt.imshow(cimg, cmapgray) plt.xticks([]), plt.yticks([]) # to hide tick values on X and Y axis plt.show() # Python: cv2.HoughCircles(image, method, dp, minDist, circles, param1, param2, minRadius, maxRadius) # Parameters: # image – 8-bit, single-channel, grayscale input image. # 返回结果为 Output vector of found circles. Each vector is encoded as a # 3-element floating-point vector (x, y, radius) . # circle_storage – In C function this is a memory storage that will contain # the output sequence of found circles. # method – Detection method to use. Currently, the only implemented method is # CV_HOUGH_GRADIENT , which is basically 21HT , described in [Yuen90]. # dp – Inverse ratio of the accumulator resolution to the image resolution. # For example, if dp1 , the accumulator has the same resolution as the input image. # If dp2 , the accumulator has half as big width and height. # minDist – Minimum distance between the centers of the detected circles. # If the parameter is too small, multiple neighbor circles may be falsely # detected in addition to a true one. If it is too large, some circles may be missed. # param1 – First method-specific parameter. In case of CV_HOUGH_GRADIENT , # it is the higher threshold of the two passed to the Canny() edge detector # (the lower one is twice smaller). # param2 – Second method-specific parameter. In case of CV_HOUGH_GRADIENT , # it is the accumulator threshold for the circle centers at the detection stage. # The smaller it is, the more false circles may be detected. Circles, # corresponding to the larger accumulator values, will be returned first. # minRadius – Minimum circle radius. # maxRadius – Maximum circle radius.
http://www.pierceye.com/news/322824/

相关文章:

  • 微信公众号平台网站开发WordPress破解分享
  • 东营网站建设服务商低价备案域名购买
  • 高校网站建设自查报告哪个外贸网站开发客户比较好用
  • 网站做付费推广都需要问什么wordpress小工具插件
  • 网站的建设技术有哪些北京一环都是住什么人
  • 做外贸soho网站的公司吗已有备案号新增网站备案要关闭原先的站点吗
  • 网站域名注册免费wordpress 让导航悬浮
  • 全景旅游网站项目建设湖南建筑公司网站
  • 做网批那个网站好免费视频素材库app
  • cms建站模板appseo网络优化是什么工作
  • 云落wordpress优化大师在哪里
  • 威海网站建设公司手机网站做落地页
  • 海宁建设局网站三网合一 网站建设
  • 1688货源网官方网站网站怎么做背景
  • 做阿里还是网站中小企业为什么要建设网站
  • 天津的网站建设做网站费用怎么入账
  • 网站原型是产品经理做wordpress手机上用的
  • 专业网站排名优化重庆广告公司电话
  • 在线免费看影视网站正规企业展厅设计公司
  • 励志网站织梦源码做电子杂志用什么网站
  • 电子设计网站wordpress数据清除
  • 义乌网站推广中国住房和城乡建设厅网站
  • 濮阳seo网站建设商贸公司寮步网站建设
  • 百姓网网站建设如何在社交网站做销售
  • 网站微信认证费用介绍网络营销的短文
  • 北京微网站修改wordpress后台登陆
  • 网站建设管理工作情况报告企业在线
  • ps临摹网站营销型网站传统网站
  • 对电子商务网站建设和管理的理解学网站开发应该学什么软件
  • 建设网站的app英文成品网站模板下载