2017-07-13 15:57:34 -0600 | received badge | ● Popular Question (source) |
2013-11-08 21:41:07 -0600 | received badge | ● Editor (source) |
2013-11-08 21:40:05 -0600 | asked a question | python-opencv people detection HELP import cv2 import numpy as np from glob import glob import itertools as it cam = cv2.VideoCapture(0) s, img = cam.read() winName = "Movement Indicator" hog = cv2.HOGDescriptor() hog.setSVMDetector( cv2.HOGDescriptor_getDefaultPeopleDetector() ) def inside(r, q): rx, ry, rw, rh = r qx, qy, qw, qh = q return rx > qx and ry > qy and rx + rw < qx + qw and ry + rh < qy + qh def draw_detections(img, rects, thickness = 1): for x, y, w, h in rects: i = 0 while s: #cv2.imshow( winName,img ) print "Human Detection Bet" the output of this code is very slow.... can someone help me make it better and faster i am a newbie trying to make a school project... |