python
菜鸟&攻城狮
这个作者很懒,什么都没留下…
展开
-
python 图片像素值的读取和设置
import cv2img=cv2.imread('test.png')# 打印像素点(1,1)的R通道值print(img.item(1,1,2))#0代表B 1代表G 2代表R# 设置像素点(1,1)的R通道为110img.itemset((1,1,2),110)# 打印像素点(1,1)的R通道值print(img.item(1,1,2))...原创 2020-03-30 15:11:09 · 4192 阅读 · 1 评论 -
python pygame 介绍
https://www.cnblogs.com/kwkk978113/p/11232612.html原创 2020-03-27 15:36:19 · 176 阅读 · 0 评论 -
Pygame获取屏幕分辨率
infoObject = pygame.display.Info()pygame.display.set_mode((infoObject.current_w, infoObject.current_h))原创 2020-03-27 11:07:13 · 3089 阅读 · 0 评论