Skip to content

Instantly share code, notes, and snippets.

View Oclemy's full-sized avatar
💭
Meditating

Clement Ochieng Oclemy

💭
Meditating
View GitHub Profile
@import 'https://fonts.googleapis.com/css?family=Open+Sans';
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
font-family: 'Open Sans', sans-serif;
line-height: 1.75em;
@uwezi
uwezi / 20240309_opencv.py
Last active July 2, 2024 11:07
[video inclusion in Manim] Include video objects picture-in-picture. #manim #animate #video #opencv #videomobject
import cv2
from PIL import Image, ImageOps
from dataclasses import dataclass
@dataclass
class VideoStatus:
time: float = 0
videoObject: cv2.VideoCapture = None
def __deepcopy__(self, memo):
return self