Skip to content

Instantly share code, notes, and snippets.

View insung3511's full-sized avatar
🪖
On army

박인성 (InSung Bahk) insung3511

🪖
On army
View GitHub Profile
import cv2
import time
hog = cv2.HOGDescriptor()
hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())
cap = cv2.VideoCapture("/path/to/test/video")
while True:
r, frame = cap.read()
if r:
start_time = time.time()
@lanius
lanius / reconstruct.py
Last active December 13, 2023 00:59
3D reconstruction from stereo images in Python
# -*- coding: utf-8 -*-
import argparse
import cv2
import numpy as np
def calc_disparity(left_image, right_image):
window_size = 3
@composite
composite / jumin.js
Last active December 20, 2023 09:22
주민등록번호 생성기 (주민번호 로직 들어가는 양식 테스트용. 개발 외 목적 사용 금지, 이 프로그램 사용에 대한 법적 책임 일체 없음.)
/**
* 주민번호 생성기
* 사용예) jumin()
* jumin({year:1990, month:3, day: 12, loop: 10}); //1990년 3월 12일생 10개 주민번호 생성.
* 확인예) jumin.verify(확인할 주민번호) 확인할 주민번호는 - 있어도 없어도 무관. 13자리만 맞추면 됨.
* @param {object} options 옵션
* year: 년도, 빈 값으면 랜덤
* month: 월, 빈 값이면 랜덤
* day: 일, 빈 값이면 랜덤
* loop: 생성개수, 빈 값이면 1개 생성.