Picture and Samples Sizes opencv_traincascade
Hello OpenCV Community,
i know there are millions Questions and Answers to the topic opencv_traincascade and i read and searched as much as i could. But i am still not sure about this, so I would like to ask this specific question.
Topic Background:
I try to train a Person Recognition based on den cv::CascadeClassifier in a specific environment.
I have 4000 positives samples of a person in the Format 48x96. (the Picture is just the Person)
I have 200 negative samples of the environment in a big Format (e.g. 480x270)
Questions:
Do i need to cut the negative Samples in many, many small Pictures with 48x96 or is opencv_traincascade.exe doing this by itself?
My info.txt looks like this: "rawdata/img1 1 0 0 48 96" Is this correct when the whole picture is a person?
The arguments "-w" "-h" in opencv_createsamples.exe and opencv_traincascade.exe have to be 48x96?
The arguments "-numPos" "-numNeg" in opencv_createsamples.exe and opencv_traincascade.exe have to be the Amount of Pictures i have? Or the Amount the program will create from the few i have?
I hope the Questions are understandable. I am still new to OpenCV. Thank you very much,
Kind regards, Derrick