【问题标题】:Face detection on partial frame in Google Mobile Vision for AndroidGoogle Mobile Vision for Android 中部分帧的人脸检测
【发布时间】:2017-11-29 14:04:56
【问题描述】:

谁能推荐一种方法来指定用于人脸检测的帧子集?这可能适用于整个面部跟踪的固定区域,例如帧的一个象限 - 因此不是每帧动态的。就我而言,我只需要扫描帧的固定部分,并且对提高性能很感兴趣。

将跟踪限制为仅突出人脸不是一种选择,因为我需要跟踪多个人脸并在发送到检测器之前裁剪每一帧太慢。我的希望是实现这样的目标:

// Send entire frame, but specify subset for detection
detector.receiveFrame(fullFrame, sub_x, sub_y, sub_width, sub_height)

或者在创建框架时:

// Create a partial frame from a full frame during frame building
Frame.Builder().setImageData(fullFrame_byteBuffer, sub_x, sub_y, sub_width, sub_height, format)

我是否缺少在 SDK 中执行此操作的选项,或者是否有比在全帧上执行复制/裁剪操作更好的方法?

谢谢

更新:我知道这个功能存在于底层 Pittpatt 实现中,名称为 ppr_set_search_region(context, x1, y1, x2, y2) - Google 会在 Android 上提供这个功能吗?

【问题讨论】:

    标签: android face-detection google-vision android-vision


    【解决方案1】:

    目前这是不可能的。虽然this answer 是为了响应动态限制条码的检测区域,但答案似乎明确表示目前不支持限制检测区域。

    【讨论】:

      猜你喜欢
      • 2019-08-04
      • 2017-08-30
      • 2017-07-30
      • 2018-03-24
      • 2017-07-01
      • 2021-11-10
      • 2020-03-06
      • 2021-07-18
      • 2021-11-18
      相关资源
      最近更新 更多