import cv2 # For OpenCV modules (For Image I/O and Contour Finding) import numpy as np # For general purpose array manipulation import scipy . fftpack # For FFT2 #### imclearborder definition def imclearborder ( imgBW , radius ): # Given a black and white image, first find all of its contours imgBWcopy = imgBW . copy () contours , hierarchy = cv2 . findContours ( imgBWcopy . copy (), cv2 . RETR_LIST , cv2 . CHAIN_APPROX_SIMPLE ) # Get dimensions of image imgRows = imgBW . shape [ 0 ] imgCols = imgBW . shape [ 1 ] contourList = [] # ID list of contours that touch the border # For each contour... for idx in np . arange ( len ( contours )): # Get the i'th contour cnt = contours [ idx ] # Look at each point in the contour for pt in cnt : rowCnt = pt [ 0 ][ 1 ] colCnt = pt [ 0 ][ 0 ] # If this is within the radius of th...
$ curl -o foo.txt http://example.com/foo.txt
답글삭제$ curl -O http://example.com/foo.txt
$ curl -O http://example.com/foo[0-9].txt
$ curl -O http://example.com/{foo,bar,baz}.txt
파일 크기로 찾기: 보다 큰거 모두 찾기
답글삭제$ find ~/ -size +1024k
하드웨어 목록 표시
답글삭제$ sudo lshw
USB 목록표시
$ sudo lsusb
스토리지 목록 보여주기
$ sudo fdisk -l
자유 메모리 보기
답글삭제$ free -m
시스템에 부하 주기
답글삭제$ stress -c 4
코어 수
$ sudo apt-get install stress
tree -L 1 -h
답글삭제look disguise
답글삭제curl ifconfig.me
답글삭제외부 아이피
file cat.jpg
답글삭제curl ipinfo.io
답글삭제내 ip로 위치
pkg-config --modversion opencv
답글삭제pkg-config --cflags opencv
pkg-config --libs opencv
GitHub 퍼블릭키 설정하기
답글삭제http://uiandwe.tistory.com/992