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 dxfgrabber | |
import cv2 | |
import numpy as np | |
import sys | |
""" | |
def absdiff(num1, num2): | |
if num1 <= num2: | |
return num2 - num1 | |
else: |
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
gimpH = 230 | |
gimpS = 36 | |
gimpV = 70 | |
opencvH = gimpH / 2 | |
opencvS = (gimpS / 100) * 255 | |
opencvV = (gimpV / 100) * 255 | |
print('H: {}\nS: {}\nV: {}\n'.format(opencvH, opencvS, opencvV)) |
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
sudo yum install autoconf aclocal automake | |
sudo yum install libtool | |
sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel | |
cd ~/downloads | |
wget http://www.leptonica.com/source/leptonica-1.72.tar.gz | |
tar -zxvf leptonica-1.72.tar.gz | |
cd leptonica-1.72 | |
./configure | |
make | |
sudo make install |
I hereby claim:
- I am akashjobanputra on github.
- I am akashj (https://keybase.io/akashj) on keybase.
- I have a public key ASCyYXn50JrN1sf4dLdvsw_l_Ra-btbHSaReyDK3kLgQxAo
To claim this, I am signing this object:
Install this extensions on chrome: Custom JS And open noisli.com and enter the code from this js to the Custom JS editor.
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 re | |
LINEBREAK_REGEX = re.compile(r'((\r\n)|[\n\v])+') | |
NONBREAKING_SPACE_REGEX = re.compile(r'(?!\n)\s+') | |
def normalize_whitespace(text): | |
""" | |
Given ``text`` str, replace one or more spacings with a single space, and one | |
or more linebreaks with a single newline. Also strip leading/trailing whitespace. |
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 subprocess | |
import time | |
import os | |
import sys | |
if len(sys.argv) > 1: | |
directory = sys.argv[1] | |
else: | |
directory = './videos' | |
directory = os.path.abspath(directory) |
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 requests | |
import time | |
localtime = int(time.time()) | |
r = requests.post('http://COPERNICUS_HOST:PORT/login.xml', data={ | |
'username': 'PLAINTEXT_USERNAME', | |
'password': 'PLAINTEXT_PASSWORD', | |
'mode': 191, | |
'producttype': 0, |
NewerOlder