摘要: 昨天安装了pygame,还没有具体学习如何用,先写了个最简单且原始的摄像头程序,画面还算流畅,不过还存在较多缺陷,后面对pygame熟悉了再一一优化。 1、实现:#!/usr/bin/env python # -*- coding: utf-8 -*- from VideoCapture import Device import time import sys, pygame pygame.init() size = width, height = 620, 485 speed = [2, 2] black = 0, 0, 0 pygame.display.set_caption('. 阅读全文
posted @ 2012-02-10 21:29 Socrates 阅读(599) 评论(0) 推荐(0) 编辑