Skip to content

Instantly share code, notes, and snippets.

View NataliaGameDev's full-sized avatar
🏠
Working from home

NataliaGameDev

🏠
Working from home
  • PampaSoft
  • Brazil
View GitHub Profile
@NataliaGameDev
NataliaGameDev / opencv_video_to_pygame.py
Created February 25, 2020 00:38 — 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])