Open wly2020-robot opened 3 years ago
保证读进来之前没有这个ID的模板
明白,谢谢
如果我注释掉这行,在线更新模板进行匹配,会有什么影响?
更新其它模板进行匹配会不会有影响呢?
不会。同一ID更新,管理好问题也不大
我是把训练和检测分成两个函数来处理的;现在实时换模板就检测有问题,检测不到。
定义了一个全局对象:line2Dup::Detector detector(128, { 8,16 }, 15, 30);
可以检查检查,代码是读所有这个ID下的模板来匹配,也没什么特别的操作
好的,谢谢。
line2Dup::Detector detector(128, { 8,16 }, 15, 30);被定义为全局对象,我想实通过界面实时更改这个对象构造函数里面的参数,有没有什么好的建议?谢谢。
可以把构造函数写成一个普通的函数
写成普通函数后,还能实例化吗?
可以的,构造函数调用那个普通函数
如果是这样,那我修改一次参数就要实例化一次?我理解的对不对?
不是,实例化指的是给class member分配内存
嗯,我的意思是界面数据如何给到detector对象?
调用那个普通函数啊
好的,明白你的意思。谢谢
你好,请问 CV_Assert(class_templates.find(class_id_tmp) == class_templates.end());这句代码写在这里是用意?谢谢