This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time,imutils | |
import cv2 | |
from PIL import Image | |
import numpy as np | |
from twilio.rest import Client | |
import tkinter | |
from threading import Thread | |
cap = cv2.VideoCapture(0) | |
cap.set(3,640) # set Width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#Example of program in action can be found here http://www.youtube.com/watch?v=burYkYiI8vg | |
import sys, pygame, random, pygame.mixer, cv2 | |
from PIL import Image | |
import PIL.ImageOps | |
#Setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lets say that you have a folder full of theme.mp3 files, organised as {movie name}/theme.mp3 | |
# and you want to copy this a Plex movies folder matching on the movie name and a semi-inteligent | |
# match on similar name. The similar name may differ in odd characters - extra ' ', '!', '\'','-' etc | |
# This simple and thrown together script does this simple-ish job. | |
# This is known to 'just work' on a DSM7.1 Synology when run via ssh | |
# Note - use is 100% at your risk. It shouldn't overwrite existing files and shouldn't corrupt anything, but | |
# please review the code, have a laugh at this simplicity and lack of anything good (comments, error handling, logging) | |
# and use if you find it helpful. If you want a source of lots of movie theme music, have a search of that |