Skip to content

Instantly share code, notes, and snippets.

@steveway
steveway / opencvvideoclock.py
Last active April 19, 2017 15:19
This loops a videofile and shows the time on top.
# To simulate netcat: https://gist.github.com/leonjza/f35a7252babdf77c8421
# Test Cython for dithering: http://docs.cython.org/en/latest/src/tutorial/numpy.html
import numpy as np
from time import localtime, strftime, time, sleep
import cv2
import sys
use_cython = True
if use_cython:
import time
import os
dirdl = '/home/Anon/Downloads/'
dirp = '/home/Anon/Pictures/'
dirv = '/home/Anon/Videos/'
dird = '/home/Anon/Documents/'
dirm = '/home/Anon/Music/'
dirs = [dirp, dirv, dird, dirdl, dirm]
while True:
time.sleep(10)