Skip to content

Instantly share code, notes, and snippets.

View insung3511's full-sized avatar
😪
Out of sync

박인성 (InSung Bahk) insung3511

😪
Out of sync
View GitHub Profile
Java 1 hr 36 mins █████████████▊░░░░░░░ 65.7%
Python 45 mins ██████▍░░░░░░░░░░░░░░ 30.7%
Other 5 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.5%
JSON 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1%
🌞 Morning 247 commits █████▏░░░░░░░░░░░░░░░ 24.5%
🌆 Daytime 396 commits ████████▎░░░░░░░░░░░░ 39.3%
🌃 Evening 340 commits ███████░░░░░░░░░░░░░░ 33.8%
🌙 Night 24 commits ▌░░░░░░░░░░░░░░░░░░░░ 2.4%
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()