我正在尝试使用trainHog opencv示例训练inria数据集,并且我正在使用在那里得到断言,我做错了什么?
clog << "Histogram of Gradients are being calculated for negative images...";
computeHOGs(pos_image_size, neg_lst, gradient_lst, flip_samples);
size_t negative_count = gradient_lst.size() - positive_count;
labels.insert(labels.end(), negative_count, -1);
CV_Assert(positive_count < labels.size());