ShapeDetection: Detect faces asynchronously on windows 10
Create Windows bitmap from detected SkBitmap that is Rgba8/Bgra8 color type, then convert the pixel format SoftwareBitmap to Gray8/Nv12 that is supported in current version. Detect faces asynchronously with the created Windows bitmap, and pause incoming method call to prevent the Detect function from being called before the AsyncOperation completes. Add unittest to test the result of detecting faces. Split original large CL[1] up in smaller subpatches including this CL. Link Face Detection demo[2] here. [1] https://chromium-review.googlesource.com/c/chromium/src/+/708336 [2] https://codepen.io/miguelao/pen/PmJWro BUG=767021 Cq-Include-Trybots: master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win10_chromium_x64_rel_ng Change-Id: If2f93ede374bdebc6921cee4b0c9a09df879b693 Reviewed-on: https://chromium-review.googlesource.com/787790Reviewed-by:Miguel Casas <mcasas@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Reviewed-by:
Greg Thompson <grt@chromium.org> Commit-Queue: Junwei Fu <junwei.fu@intel.com> Cr-Commit-Position: refs/heads/master@{#523694}
Showing
Please register or sign in to comment