Preferred Graphy
1. This program will find people in this photo. 2. Importing cv2 package, we can find people in this photo. just read the source code below. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import cv2 #ready# hog = cv2.HOGDescriptor() hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector()) hogParams = {'winStride':(8,8), 'padding':(32,32), 'scale':1.05, 'hitThreshold':0, 'finalThreshold':5} #dete..
- Main Topics
-
[Image Processing] - Finding a person.
1. This program will find people in this photo. 2. Importing cv2 package, we can find people in this photo. just read the source code below. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import cv2 #ready# hog = cv2.HOGDescriptor() hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector()) hogParams = {'winStride':(8,8), 'padding':(32,32), 'scale':1.05, 'hitThreshold':0, 'finalThreshold':5} #dete..
-
[Data Processing] - 각 지역별 인구구조 분석(그래프 별)
*Preview> 지역별 인구구조 분석을 위한 기초. 1. www.mois.go.kr 2. CSV File 다운로드 후, 해당 파일 형식에 맞게 프로그램 작성 3. 소스코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import csv import matplotlib.pyplot as plt f = open('age3.csv') data = csv.reader(f) result = [] for row in data: if '서울특별시 송파구 잠실6동(1171071000)' in row[0]: for i in row[3:]: result.append(int(i.replace(',',''))) print(result) plt.style.use('ggplot') pl..
-
HABIT - Wendy Wood
"시작보다 지속이, 탁월함 보다 꾸준함이 인간의 삶을 더 생산적이고 가치 있게 만든다는 사실을 깨달아야 한다." "우리의 일상에 자연스럽게 밴 습관은 맨 처음에는 의식적 자아로부터 보내진 신호에 의해 시작되고 조종되지만, 시간이 지나 궁극적으로는 실행제어 기능의 간섭 없이 비의식적 자아에 의해 스스로 작동하게 한다." "일상이 노력이 필요 없는 정신의 자동 활동 영역에 더 많이 넘겨줄수록, 마음은 ‘본래 처리해야 할 일(Proper Work)’에 더 많은 힘을 쏟을 수 있다." "위대한 사람은 위대한 일에만 몰두한다." "핵심은 혼란을 제거하는 것이다. 혼란은 망설임을 낳고, 망설임은 일을 망친다." "습관이 완전히 형성되기 전까지는 목표와 보상이 필요하다. 이렇게 얻은 보상은 당신이 다음에도 똑같은 행..
- Data Science Topics
-
RSA Algorithm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 #public key(RSA) 알고리즘 from Crypto.PublicKey import RSA #Private key와 Public key 쌍을 생성한다. #Private key는 소유자가 보관하고, Public key는 공개한다. keyPair = RSA.generate(2048) privKey = keyPair.exportKey() #키 소유자 보관용 pubKey = keyPair.publickey() #외부 공개용 #keyPair의 p,q,e,d를 확인해 본다. keyObj = RSA.importKey(privKey) p..
-
- AES : 대칭키 암호 절차 Sample
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 #Advanced Encryption Standard(AES) Algorithm Example #CBC(Cipher Block Chain) Mode Encryption from Crypto.Cipher import AES from Crypto import Random import numpy as np #대칭키를 만든다. 대칭키는 128-bit, 192-bit, 256-bit를 사용할 수 있다. secretKey128 = b'0123456701234567' sec..
-
[Data Processing] - 각 지역별 인구구조 분석(그래프 별)
*Preview> 지역별 인구구조 분석을 위한 기초. 1. www.mois.go.kr 2. CSV File 다운로드 후, 해당 파일 형식에 맞게 프로그램 작성 3. 소스코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import csv import matplotlib.pyplot as plt f = open('age3.csv') data = csv.reader(f) result = [] for row in data: if '서울특별시 송파구 잠실6동(1171071000)' in row[0]: for i in row[3:]: result.append(int(i.replace(',',''))) print(result) plt.style.use('ggplot') pl..