Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2333)

Unified Diff: content/test/data/media/face_detection_test.html

Issue 2564123003: Face Detection: Use DetectedFace in FaceDetector.cpp iso DOMRect (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/face_detection_test.html
diff --git a/content/test/data/media/face_detection_test.html b/content/test/data/media/face_detection_test.html
index 9efa5f8238e8eaf57eb9a72ad6db5fe26a2c40f9..098ef4f79a65f835ad99ab36a5173fa30efc16b1 100644
--- a/content/test/data/media/face_detection_test.html
+++ b/content/test/data/media/face_detection_test.html
@@ -16,9 +16,9 @@
var detector = new FaceDetector();
var results = "";
detector.detect(img)
- .then(boundingBoxes => {
- for (var i=0; i<boundingBoxes.length; i++) {
- var boundingBox = boundingBoxes[i];
+ .then(detectedFaces => {
+ for (var i = 0; i < detectedFaces.length; i++) {
+ var boundingBox = detectedFaces[i].boundingBox;
var result = boundingBox.x + "," + boundingBox.y + "," +
boundingBox.width + "," + boundingBox.height;
results += result + "#";
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698