trainHog opencv示例断言正计数<labels.size

时间:2018-05-29 19:56:01

标签: opencv

=“”

我正在尝试使用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());

0 个答案:

没有答案