which values have to be add into numpy.add_argument()? [closed]

asked 2019-02-12 22:50:35 -0600

Samjith888 gravatar image

I got some code for human body detection using pedestrian detection OpenCV,link text. I attached the code below where i wanto replace the np.add_argument() value with my trainning set values. i have refered some tutorials , but i can't understand the concept and its not working out in my case.

from __future__ import print_function
from imutils.object_detection import non_max_suppression
from imutils import paths
import numpy as np
import argparse
import imutils
import cv2

# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--images", required=True, help="path to images directory")
args = vars(ap.parse_args())

# initialize the HOG descriptor/person detector
hog = cv2.HOGDescriptor()
hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())

How can i replace the 'ap.add_argument() with

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2019-02-13 03:32:04.910999

Comments

can you read your question again ? does numpy.add_argument() even exist ?

can it even be, this is not related to opencv at all ? (but a plain "unable to read python docs" one ?)

berak gravatar imageberak ( 2019-02-13 01:56:30 -0600 )edit
1

Off topics

LBerger gravatar imageLBerger ( 2019-02-13 03:14:02 -0600 )edit

@Samjith888 : please try to lookup relevant documentation on your own, instead of asking here, thank you.

berak gravatar imageberak ( 2019-02-13 03:31:27 -0600 )edit