Dlib face

讨论了在使用正常图像和上采样图像进行面部检测时,如何通过阻止已检测到的面部来优化检测速度,以及这种方法的实际效果和理论分析。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Diego Victor de Jesus

Diego Victor de Jesus 2017-03-02

Hello!

In my application i run two face detectors: a detector for normal image and another for upsampled image (same image). Next, i compare the number of detected faces resulted from both detectors and output results of the greater vector (the resulting array of faces rects).

I'm trying to find a way to optimize speed detection by blocking already detected faces from normal image and passing it to the upsampled detector. For example, setting pixels to 0 of all ROIs detected in normal detector.

Would gain on performance be noticeable?

 

  •  
  • Davis

    Davis 2017-03-03

    This isn't a sensible thing to do. When you run the detector on the
    upsampled image it scans the whole image for faces big and small. So
    running it on a smaller image is totally redundant.

     
    •  
    • Diego Victor de Jesus

      Diego Victor de Jesus 2017-03-03

      Indeed. What i forgot to say is that i want to know the difference in number of detected faces between the normal detection and upsampled detection. I want to create some info about detection success on a dataset of faces of many sizes

       
      •  
      • Davis

        Davis 2017-03-03

        That's still not sensible. The detector literally down samples the image
        internally multiple times and scans all the resulting images. So doing
        what you are doing is literally rerunning the same computation. If all you
        want to know is the minimum sized face it will find then I can tell you it
        doesn't look for faces smaller than about 80x80 pixels.

         
        •  
        • Diego Victor de Jesus

          Diego Victor de Jesus 2017-03-03

          I think i get it. So the detector takes the upsampled image and at a certain detection phase it runs on a downsampled version image which is the same as the original image? If so, the upsampled version will always have the same results as normal detector plus the results from its own starting size?

          By the way, is it correct to assume that the detector will look for 40x40 faces when running on a upsampled frame?

           
          Last edit: Diego Victor de Jesus 2017-03-03
          •  
          • Davis

            Davis 2017-03-03

            Yes, that's how it works.

            Yes, if you double the size of the image then small faces that were 40x40
            will be 2x as big and so the detector will find them.

             

             alternate

            •  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值