I hereby claim:
- I am ryul99 on github.
- I am ryul_99 (https://keybase.io/ryul_99) on keybase.
- I have a public key whose fingerprint is A18B E3FE DDCF D4F9 BC46 D696 C1C3 4851 BA8B 6E67
To claim this, I am signing this object:
import cv2 | |
import glob | |
import os | |
import tqdm | |
from itertools import islice | |
from multiprocessing import Pool | |
import numpy as np | |
from pathlib import Path | |
path = r'/path/to/image/*.png' |
# assemble images which is splited by split_image.py | |
import cv2 | |
import glob | |
import os | |
import tqdm | |
import numpy as np | |
from itertools import islice | |
from multiprocessing import Pool |
def get_lines(img_path): # return: [[left, top, right, bottom]...] | |
img = cv2.imread(img_path) | |
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) | |
edges = cv2.Canny(gray,50,150,apertureSize = 3) | |
minLineLength = 100 | |
maxLineGap = 10 | |
lines = cv2.HoughLinesP(edges,1,np.pi/180,100,minLineLength,maxLineGap) | |
return lines |
import requests, sys | |
from tqdm import tqdm | |
def download_file(url, local_filename): | |
# NOTE the stream=True parameter below | |
with requests.get(url, stream=True) as r: | |
r.raise_for_status() | |
with open(local_filename, 'wb') as f: | |
for chunk in tqdm(r.iter_content(chunk_size=8192)): | |
if chunk: # filter out keep-alive new chunks |
# made by ryul99 at github | |
from bs4 import BeautifulSoup | |
import requests | |
from tqdm import tqdm | |
paper_index_page = 'whole url of NeaurIPS paper list page' | |
print('Crawling Paper List...') | |
req = requests.get(paper_index_page) | |
html = req.text |
#!/bin/bash | |
# get docker container self and descendants pids | |
docker_container_pids=() | |
docker_container_descendants=() | |
for container_id in $(docker ps --format '{{.ID}}'); do | |
a=$(docker inspect -f '{{.State.Pid}}' "$container_id") | |
docker_container_pids+=( "$a" ) | |
done | |
for pid in ${docker_container_pids[@]}; do |
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am ryul99 on github. | |
* I am ryul_99 (https://keybase.io/ryul_99) on keybase. | |
* I have a public key ASB5_1TIxA35iojFpDcBd5QKuL6QN4Ry-pJ9fgJyb0mQBAo | |
To claim this, I am signing this object: |