Open Leslie20200401 opened 3 years ago
传参数就可以
line2Dup::Detector detector(128, { 4, 8 });
是从上面这里春如参数吗,我改成{2,4,8}就会在下面,退出程序,提示特征太少
const std::vector &Detector::getTemplates(const std::string &class_id, int template_id) const
{
TemplatesMap::const_iterator i = class_templates.find(class_id);
CV_Assert(i != class_templates.end());
CV_Assert(i->second.size() > size_t(template_id));
return i->second[template_id];
}
我将
Detector(int num_features, std::vector
我测试了一下将模板图像resize为128,然后设置三层,这样就不会出现错误了,就是放模板图像分辨率比较小时,时很难设置成三层金字塔的。
是的,缩小太多了
我认为此源代码的问题是难以设置参数。 融合分支的准确性很差。
有什么例子说明准确性的问题吗
是的,缩小太多了
博主,请问下,如果模版图像本身分辨率就很小,该怎么办,把特征金字塔去掉,仍然提示提示特征太少
如何方便的设置图像金字塔层数和提取特征的个数