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
#!/bin/bash | |
# double-blind resolution test to detect upscales from 720p to 1080p | |
# usage: upscale-detect.sh filename | |
# | |
# what's it doing: taking two screenshots at a random spot in a file, once with the video downscaled to 720p and upscaled back to 1080p, once without scaling filters. The order of the screensots is randomized. | |
# | |
# results: everything is in /tmp/upscale-detect | |
# shots are shot_a.png and shot_b.png (uncompressed) | |
# the file doubleblind_secret reveals which was the original. | |
# |
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 | |
# this scripts converts a matlab mat-file to an importable python-file | |
import scipy.io.matlab as mio | |
from scipy import array | |
import re, pprint | |
def mat_to_py(matfile, pyfile=None): | |
if not pyfile: | |
pyfile = re.sub(".mat$",".py$",matfile) |