This file contains hidden or 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 | |
### | |
# Basically, these all loop through an array of xterm colors (https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg) | |
# and then prints out the block character (█) in that color {1..N} times (aka width) (see printf wizardry explained: https://stackoverflow.com/a/5349842) | |
### | |
# philly pride/poc | |
for c in 232 232 130 130 196 196 202 202 226 226 46 46 021 021 126 126;do printf "\033[38;05;${c}m%0.s█" {1..50};echo;done;echo |
This file contains hidden or 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/python | |
import sys, subprocess, getopt, os, json | |
def main(argv): | |
script_name = os.path.basename(argv[0]) | |
try: | |
opts, args = getopt.getopt(argv[1:], "sw:h:q:", ["help", "solid-color", "width=", "height=", "samples="]) | |
except getopt.GetoptError as err: |
This file contains hidden or 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
#Identify pupils. Based on beta 1 | |
import numpy as np | |
import cv2 | |
import time | |
cap = cv2.VideoCapture(0) #640,480 | |
w = 640 | |
h = 480 |