基于Dlib的自定义对象检测器窗口大小计算

时间:2019-03-01 23:08:55

标签: dlib

我正在尝试使用fhog_object_detector_ex.cpp中给出的示例训练对象检测器。 图像全部为150 x150。每个图像有2个边界框。

trainng xml文件中的示例条目如下所示

<image file='img1.png'>
    <box top='67' left='20' width='16' height='16'/>
    <box top='60' left='39' width='18' height='20'/>
</image>
<image file='img2.png'>
    <box top='69' left='14' width='16' height='17'/>
    <box top='66' left='34' width='18' height='18'/>
</image>
<image file='img3.png'>
    <box top='56' left='26' width='17' height='17'/>
    <box top='54' left='46' width='18' height='20'/>
</image>
<image file='img4.png'>
    <box top='64' left='103' width='17' height='18'/>
    <box top='69' left='125' width='13' height='13'/>
</image>
<image file='img5.png'>
    <box top='55' left='100' width='18' height='18'/>
    <box top='61' left='120' width='15' height='15'/>
</image>

我正在使用以下参数来训练detctor。 下采样大小为6,窗口大小为30

我尝试了不同的窗口大小,但是我发现大量图像被拒绝。错误消息如下所示: 错误!给出了一组不可能的对象框用于训练。所有框都需要具有相似的长宽比,并且面积也不小于625像素。以下图像包含无效的框: 如果Windows大小为25,则会出现此错误消息。

我不确定如何为图像集选择下采样大小和窗口大小。

如何正确选择这些参数。

0 个答案:

没有答案
相关问题