Chromium Code Reviews
DescriptionShapeDetection: support CanvasImageSource as detect() source
This CL changes the input parameter to FaceDetector.detect()
to be a CanvasImageSource, refactors the current
code to handle HTMLImageElement inputs, and adds support
for ImageBitmap. So now we'll have a single detect() method
doing the common stuff and delegating the specifics to e.g.
detectFacesOnImageElement(), detectFacesOnImageBitmap()
etc.
It also beefs up the corresponding LayoutTests,
renaming some files/functions where appropriate
BUG=659138
TEST=layout tests (fast, non fast, http).
Committed: https://crrev.com/a4f0895546f2d20906d5b276a9aafae9af50dd30
Cr-Commit-Position: refs/heads/master@{#428094}
Patch Set 1 : #
Total comments: 12
Patch Set 2 : xianglu@s comments #
Total comments: 2
Patch Set 3 : Using CanvasImageSource as input for detect() #
Total comments: 4
Patch Set 4 : esprehn@ comments and specific LayoutTest for empty HTMLImageElement #Messages
Total messages: 36 (18 generated)
|