Discovering Objects Using the Dlib Library

I am trying to discover an object using the dlib learning library.

Since I followed the instructions written, everything looks fine, but I can’t detect my object even in the original image. even if I test it on a single black image, it detects one detection. what should not happen. and if I attach one of the trained images to a black image, he will find many detections that should not happen either.

I did not touch the train_object_detector.cpp file. this is the original.

here are my sample images

enter image description hereenter image description hereenter image description hereenter image description hereenter image description hereenter image description here

The XML file I created using imglab.

<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='image_metadata_stylesheet.xsl'?>
<dataset>
<name>imglab dataset</name>
<comment>Created by imglab tool.</comment>
<images>
  <image file='totaldata/1.jpg'>
    <box top='0' left='1' width='61' height='64'/>
  </image>
  <image file='totaldata/2.jpg'>
    <box top='0' left='1' width='63' height='65'>
      <label>1</label>
    </box>
  </image>
  <image file='totaldata/3.jpg'>
    <box top='1' left='0' width='61' height='61'>
      <label>1</label>
    </box>
  </image>
  <image file='totaldata/4.jpg'>
    <box top='0' left='0' width='59' height='63'>
      <label>1</label>
    </box>
  </image>
  <image file='totaldata/5.jpg'>
    <box top='2' left='1' width='59' height='60'>
      <label>1</label>
    </box>
  </image>
  <image file='totaldata/6.jpg'>
    <box top='0' left='2' width='60' height='62'>
      <label>1</label>
    </box>
  </image>
</images>
</dataset>

detection screenshot only with black enter image description here

detection screenshot only with black and one of the formed images.

enter image description here

just in case, this is a link for the cpp file.

http://dlib.net/train_object_detector.cpp.html

.

+4
1

. , , .

( ), , , .

+6

All Articles