Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3577135
  • 博文数量: 365
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2522
  • 用 户 组: 普通用户
  • 注册时间: 2019-10-28 13:40
文章分类

全部博文(365)

文章存档

2023年(8)

2022年(130)

2021年(155)

2020年(50)

2019年(22)

我的朋友

发布时间:2022-06-15 17:17:32

import pygamefrom pygame.locals import *import pygameimport sysimport asyncioimport timeimport randomclass Player(pygame.sprite.Sprite):    #粽子对象    def __init__(self):       &nbs.........【阅读全文】

阅读(643) | 评论(0) | 转发(0)

发布时间:2022-06-14 17:18:05

if __name__ == '__main__':"""    opt模型主要参数解析:    --weights:初始化的权重文件的路径地址    --cfg:模型yaml文件的路径地址    --data:数据yaml文件的路径地址    --hyp:.........【阅读全文】

阅读(1491) | 评论(0) | 转发(0)

发布时间:2022-06-13 11:30:09

#!/usr/bin/env python# -*- coding:utf-8 -*-import cv2import numpy as npfile=r"src.jpg"# step1:读取照片img = cv2.imread(file)# step1.2:缩放图片()img = cv2.resize(img, None, fx=1.0, fy=1.0)rows, cols, channels = img.shape# 展示图片cv2.imshow("original...",.........【阅读全文】

阅读(434) | 评论(0) | 转发(0)

发布时间:2022-06-09 16:53:07

from collections import namedtupleChessman = namedtuple('Chessman', 'Name Value Color')Point = namedtuple('Point', 'X Y')BLACK_CHESSMAN = Chessman('黑子', 1, (45, 45, 45))WHITE_CHESSMAN = Chessman('白子', 2, (219, 219, 219))offset = [(1, 0), (0, 1), (1, 1), (1, -1)]class Ch.........【阅读全文】

阅读(822) | 评论(0) | 转发(0)

发布时间:2022-06-07 17:18:20

import pygameclass Bg(pygame.sprite.Sprite):    def __init__(self):        super(Bg, self).__init__()        bg_small = pygame.image.load('bg.png').convert_alpha()  &nb.........【阅读全文】

阅读(500) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册