自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 小小不成候的期末作业

© Fu Xianjun. All Rights Reserved.

2021-07-05 16:13:41 92

原创 图像金字塔

© Fu Xianjun. All Rights Reserved.高斯金字塔代码如下:#高斯金字塔def pyramid_demo(image,level): temp = image.copy() pyramid_images = [] for i in range(level): dst = cv2.pyrDown(temp) pyramid_images.append(dst) cv2.imshow("pyrami...

2021-07-01 18:41:42 65

原创 十三.(2)信用卡识别

© Fu Xianjun. All Rights Reserved.素材:二.处理cardImg = cv2.imread('credit_card_03.png')cardImg = cv2.resize(cardImg, \ (300, int(float(300 / cardImg.shape[1]) * cardImg.shape[0])),\ interpolation=cv2.INTER_AREA...

2021-06-29 14:48:09 116

原创 十三.(1)数字识别

© Fu Xianjun. All Rights Reserved.一.读取import cv2import numpy as npdef sort_contours(cnts, method = "left-to-right"): reverse = False i=0 if method == "right-to-left" or method == "bottom-to-top": reverse = True if method == "...

2021-06-29 14:31:04 108

原创 十五.答题卡识别

© Fu Xianjun. All Rights Reserved.代码如下:import cv2import numpy as npdef cv_show(name,img): cv2.imshow(name,img) cv2.waitKey(0) cv2.destroyAllWindows()def order_points(pts): rect = np.zeros((4,2),dtype="float32") s = pts.sum(axi...

2021-06-29 14:19:39 185

原创 九.图像直方图

© Fu Xianjun. All Rights Reserved.练习1:绘制彩色的直方图import cv2import numpy as npimg=cv2.imread("bd.jpg")histb = cv2.calcHist([img],[0],None,[256],[0,255])histg = cv2.calcHist([img],[1],None,[256],[0,255])histr = cv2.calcHist([img],[2],None,[256],[0,255]

2021-06-22 16:30:36 110

原创 六.图像梯度

© Fu Xianjun. All Rights Reserved.

2021-06-22 16:22:22 67

原创 八.图像轮廓

@Fu Xianjun. All Rights Reserved.练习1:实物凸包检测¶import cv2# 读取图片并转至灰度模式img = cv2.imread('hand.png', 1)gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)# 二值化ret, binary = cv2.threshold(gray, 60, 255, cv2.THRESH_BINARY)# 图片轮廓contours, hierarchy = cv2.find.

2021-06-22 16:11:44 174

原创 十一.图像分割与提取

@ Fu Xianjun. All Rights Reserved.import cv2import numpy as npimg = cv2.imread("coins.jpg")gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)#----------二值化----------#ret,binary = cv2.threshold(gray,0,255,cv2.THRESH_BINARY_INV+cv2.THRESH_OTSU)#----------形

2021-06-22 15:34:56 137

原创 十六.CSRT 追踪算法的使用

© Fu Xianjun. All Rights Reserved.import cv2import numpy as npOPENCV_OBJECT_TRACKERS = { "csrt":cv2.TrackerCSRT_create, "kcf":cv2.TrackerKCF_create, "boosting":cv2.TrackerBoosting_create, "mil":cv2.TrackerMIL_create, "tld":cv2.Trac...

2021-06-22 15:16:24 1789 3

原创 一.图像处理基础

© Fu Xianjun. All Rights Reserved.一:图像读取、显示、保存二:图像像素处理1、图像加密2、面部打码及解码一:图像读取、显示、保存1.读取图像cv2.imread(filename, flags)flags的值:cv2.IMREAD_UNCHANGED -1 #原图cv2.IMREAD_GRAYSCALE 0 #灰度图cv2.IMREAD_COLOR 1 #BGR图像,默认cv2.IMREAD_ANYDEPTH 2 #对应深度图像cv2.ANYCOLO

2021-06-07 23:33:17 146

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除