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 cv2 | |
import numpy as np | |
import sys | |
import os | |
def extract_red(infile, outfile): | |
print(infile) | |
img = cv2.imread(infile) | |
img_hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) |
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
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty itself. | |
#env: | |
# TERM variable | |
# | |
# This value is used to set the `$TERM` environment variable for | |
# each instance of Alacritty. If it is not present, alacritty will |
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 | |
# arXiv uses an outdated TexLive distribution. This script is used to package | |
# all neccesary files so my paper can be compiled on arXiv... | |
# path to the texlive distribution | |
TEXLIVE=/usr/local/texlive/2016 | |
# prepare the diretory for my submission | |
rm arXiv-package.zip |
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 sys | |
from math import sqrt | |
import pydot | |
INFINITY = 100000000 | |
MIN_SUPPORT = 5 | |
MAX_DEPTH = 10 | |
ALPHA = 20 |