![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
HeyRena
这个作者很懒,什么都没留下…
展开
-
【数据结构与算法】矩形结构代码笔记摘录
摘录自: team-learning-program public class Rectangle { public float Length; public float Width; public Rectangle(float length, float width) { Length = length > 0 ? length : 0f; Width = width > 0 ? width : 0f; } pu原创 2020-10-15 22:06:39 · 215 阅读 · 0 评论 -
【OpenCV中的Gui特性】把鼠标当画笔 - 自学代码笔记
(根据OpenCV+Python中文教程书籍电子版自学) 1. 简单演示 import cv2 import numpy as np # 查看所有被支持的鼠标事件 # events = [i for i in dir(cv2) if 'EVENT' in i] # print(events) #mouse callback function def draw_circle(event,x,y,flags,param): if event == cv2.EVENT_LBUTTONDBLCLK:原创 2020-08-04 19:40:43 · 145 阅读 · 0 评论 -
【OpenCV中的Gui特性】OpenCV中的绘图函数 - 自学代码笔记
(根据OpenCV+Python中文教程书籍电子版自学) 1. 头文件 import cv2 import numpy as np 2. 创建黑色背景 # Create a black image img = np.zeros((512,512,3),np.uint8) 3. 画线 # 画线 起点和终点 从左上方到右下角 # Draw a diagonal blue line with thickness of 5 px cv2.line(img,(0,0),(511,511),(255,0,0),5)原创 2020-08-03 23:39:02 · 175 阅读 · 0 评论 -
【OpenCV中的Gui特性】视频 - 自学代码笔记
(根据OpenCV+Python中文教程书籍电子版自学) 1. 用摄像头捕获视频 cap = cv2.VideoCapture(0,cv2.CAP_DSHOW) while(True): # Capture frame-by-frame ret, frame = cap.read() # Our operations on the frame come here gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) # Di原创 2020-07-31 15:25:28 · 124 阅读 · 0 评论 -
【OpenCV中的Gui特性】图片 - 自学代码笔记
1. 头文件 # cv2.imread() cv2.imshow() cv2.imwrite() import cv2 import numpy as np import matplotlib.pyplot as plt 2. 读入图像 img = cv2.imread('1.jpg',0) 3. 显示图像` # 原来的写法 cv2.imshow('1.jpg',img) cv2.waitKey(0) cv2.destroyAllWindows() # 法一: def cv_show(name,img原创 2020-07-31 13:52:29 · 148 阅读 · 0 评论 -
【Python数据可视化分析】学习笔记
这些天一直在跟着b站上的Python数据可视化分析 matplotlib教程自学数据可视化相关基础知识(这位老师讲得挺好懂的,对新手学习很友好,感兴趣的小伙伴可以自行进入链接),搬运了一些自己在学习过程中编写的代码(主要是跟随教程),以防本地保存的内容丢失。 (以下所有的代码可以自行复制到本地,有注释的取消掉注释稍作调整即可运行) 一、数据可视化课程及numpy简介 # import matplotlib.pyplot as plt # plt.plot([1,2,3],[3,2,1]) # plt.sho原创 2020-07-30 18:02:43 · 994 阅读 · 4 评论 -
【菜鸟进阶之路】P5461 赦免战俘 题解笔记(持更)
耐下心来看56篇来自大佬们的题解,获益匪浅,为不枉此行,决定积累些对自己以后打题有用的知识点。原创 2020-05-27 22:30:41 · 544 阅读 · 0 评论