Skip to content

Instantly share code, notes, and snippets.

View f41ardu's full-sized avatar
💭
I may be to fast to respond.

f41_ardu f41ardu

💭
I may be to fast to respond.
  • Stuttgart / Baden- Württemberg / Germany
  • 13:38 (UTC +02:00)
View GitHub Profile
@f41ardu
f41ardu / opencv_video_to_pygame.py
Created February 10, 2020 10:13 — forked from radames/opencv_video_to_pygame.py
OpenCV VideoCapture running on PyGame
import pygame
from pygame.locals import *
import cv2
import numpy as np
import sys
camera = cv2.VideoCapture(0)
pygame.init()
pygame.display.set_caption("OpenCV camera stream on Pygame")
screen = pygame.display.set_mode([1280,720])