2011-05-19から1日間の記事一覧

pythonでサクっとWebカメラから画像引っ張ってきて表示。

pygame, PIL, VideoCaptureを使う。 import sys import pygame import Image import VideoCapture def image2surface(image): mode = image.mode size = image.size data = image.tostring() return pygame.image.fromstring(data, size, mode) camera = Vid…

test