Python cv2.HOGDescriptor_getDefaultPeopleDetector() Examples
The following are 5
code examples of cv2.HOGDescriptor_getDefaultPeopleDetector().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
cv2
, or try the search function
.
![](https://www.programcreek.com/common/static/images/search.png)
Example #1
Source File: pedestrian_detector.py From study-picamera-examples with MIT License | 5 votes |
def __init__(self, flip = True): self.vs = PiVideoStream(resolution=(800, 608)).start() self.flip = flip time.sleep(2.0) self.hog = cv2.HOGDescriptor() self.hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())
Example #2
Source File: benchmark.py From VNect with Apache License 2.0 | 5 votes |
def BB_init(self): # use HOG method to initialize bounding box self.hog = cv2.HOGDescriptor() self.hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector()) self._box_init_window_name = 'Bounding Box Initialization' cv2.namedWindow(self._box_init_window_name) cv2.setMouseCallback(self._box_init_window_name, self._on_mouse)
Example #3
Source File: hog_box.py From VNect with Apache License 2.0 | 5 votes |
def __init__(self): print('Initializing HOGBox...') self.hog = cv2.HOGDescriptor() self.hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector()) self._box_init_window_name = 'Click mouse to initialize bounding box' cv2.namedWindow(self._box_init_window_name) cv2.setMouseCallback(self._box_init_window_name, self.on_mouse) print('HOGBox initialized.')
Example #4
Source File: pedestrian_detector.py From treasure-boxes with MIT License | 5 votes |
def __init__(self): self.cap = scorer.VideoCapture(0) self.hog = cv2.HOGDescriptor() self.hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())
Example #5
Source File: hog.py From zoneminder with GNU General Public License v2.0 | 5 votes |
def __init__(self): self.hog = cv2.HOGDescriptor() self.hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector()) self.winStride = g.config['stride'] self.padding = g.config['padding'] self.scale = float(g.config['scale']) self.meanShift = True if int(g.config['mean_shift']) > 0 else False g.logger.debug('Initializing HOG')