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

Issue 2502723002: ShapeDetection: implement barcode detection, blink part (Closed)

Created:
4 years, 1 month ago by mcasas
Modified:
4 years, 1 month ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, haraken, dglazkov+blink, darin-cc_chromium.org, agrieve+watch_chromium.org, blink-reviews, darin (slow to review), blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ShapeDetection: implement barcode detection, blink part This CL introduces the QR/barcode detection API idls (BarcodeDetector.idl and DetectedBarcode.idl), and the Blink-side implementation and mojo definition. FaceDetector.cpp is almost emptied to become a storefront for ShapeDetector, where most of the code is moved to and that is used for both Face and Barcode detection. LayoutTests and mock mojo implementation are adapted all over -- in particular, the tests under LayoutTests/shapedetection are 'parameterised'. BUG=665150 Committed: https://crrev.com/cd43abe6b873841f33cdbe5cc2789bd1611a3d4c Cr-Commit-Position: refs/heads/master@{#432429}

Patch Set 1 #

Total comments: 10

Patch Set 2 : comment+TODO in shapedetection.mojom #

Patch Set 3 : xianglu@ comments #

Total comments: 6

Patch Set 4 : haraken@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+591 lines, -543 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java View 3 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html View 1 2 1 chunk +23 lines, -17 lines 0 comments Download
D third_party/WebKit/LayoutTests/shapedetection/detectface-HTMLImageElement.html View 1 chunk +0 lines, -42 lines 0 comments Download
D third_party/WebKit/LayoutTests/shapedetection/detectface-HTMLVideoElement.html View 1 chunk +0 lines, -47 lines 0 comments Download
D third_party/WebKit/LayoutTests/shapedetection/detectface-ImageBitmap.html View 1 chunk +0 lines, -50 lines 0 comments Download
A third_party/WebKit/LayoutTests/shapedetection/detectshape-HTMLImageElement.html View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/shapedetection/detectshape-HTMLVideoElement.html View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/shapedetection/detectshape-ImageBitmap.html View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js View 2 chunks +19 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/BUILD.gn View 1 chunk +6 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h View 1 chunk +10 lines, -26 lines 0 comments Download
A third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.idl View 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl View 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.h View 1 chunk +5 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp View 1 2 3 1 chunk +4 lines, -292 lines 0 comments Download
A third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp View 1 2 3 10 chunks +89 lines, -41 lines 0 comments Download
M third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom View 1 1 chunk +15 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (21 generated)
mcasas
xianglu@ PTAL tsepez@ additions to mojom file plz.
4 years, 1 month ago (2016-11-15 01:46:04 UTC) #14
dcheng
https://codereview.chromium.org/2502723002/diff/140001/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom File third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom (right): https://codereview.chromium.org/2502723002/diff/140001/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom#newcode29 third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom:29: DetectBarcodes(handle<shared_buffer> frame_data, uint32 width, uint32 height) I think rsesek@ ...
4 years, 1 month ago (2016-11-15 01:47:38 UTC) #16
Robert Sesek
Why can't this detection be done in the renderer process directly?
4 years, 1 month ago (2016-11-15 14:29:17 UTC) #18
mcasas
On 2016/11/15 14:29:17, Robert Sesek wrote: > Why can't this detection be done in the ...
4 years, 1 month ago (2016-11-15 17:38:35 UTC) #19
Tom Sepez
https://codereview.chromium.org/2502723002/diff/140001/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom File third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom (right): https://codereview.chromium.org/2502723002/diff/140001/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom#newcode19 third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom:19: string raw_value; What values can this string take? Can ...
4 years, 1 month ago (2016-11-15 18:31:00 UTC) #20
mcasas
ptal https://codereview.chromium.org/2502723002/diff/140001/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom File third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom (right): https://codereview.chromium.org/2502723002/diff/140001/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom#newcode19 third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom:19: string raw_value; On 2016/11/15 18:31:00, Tom Sepez wrote: ...
4 years, 1 month ago (2016-11-15 19:05:25 UTC) #21
Robert Sesek
On 2016/11/15 17:38:35, mcasas wrote: > On 2016/11/15 14:29:17, Robert Sesek wrote: > > Why ...
4 years, 1 month ago (2016-11-15 19:07:52 UTC) #22
xianglu
https://codereview.chromium.org/2502723002/diff/140001/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html File third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html (right): https://codereview.chromium.org/2502723002/diff/140001/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html#newcode7 third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html:7: var makeAsyncTest = function(detectorName) { Consider changing this name ...
4 years, 1 month ago (2016-11-15 19:19:30 UTC) #23
mcasas
PTAL rsesek@ comment: > If the API can work on the frame data being sent ...
4 years, 1 month ago (2016-11-15 20:22:56 UTC) #24
Tom Sepez
lgtm
4 years, 1 month ago (2016-11-15 22:23:57 UTC) #25
xianglu
lgtm
4 years, 1 month ago (2016-11-15 22:45:10 UTC) #26
mcasas
boliu@: please RS content/public/android/java.../shapedetection/ShapeDetectionImpl.java (I'll work on moving the Java mojo interface implementation into renderer ...
4 years, 1 month ago (2016-11-15 22:53:03 UTC) #28
boliu
java lgtm
4 years, 1 month ago (2016-11-15 22:53:47 UTC) #29
mcasas
haraken@ RS plz /PTAL at the WebKit/Source files
4 years, 1 month ago (2016-11-15 22:54:01 UTC) #31
haraken
LGTM https://codereview.chromium.org/2502723002/diff/180001/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp File third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp (right): https://codereview.chromium.org/2502723002/diff/180001/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp#newcode12 third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp:12: return new DetectedBarcode("", DOMRect::create(0, 0, 0, 0)); Use ...
4 years, 1 month ago (2016-11-16 04:15:11 UTC) #32
mcasas
https://codereview.chromium.org/2502723002/diff/180001/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp File third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp (right): https://codereview.chromium.org/2502723002/diff/180001/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp#newcode12 third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp:12: return new DetectedBarcode("", DOMRect::create(0, 0, 0, 0)); On 2016/11/16 ...
4 years, 1 month ago (2016-11-16 05:23:10 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2502723002/200001
4 years, 1 month ago (2016-11-16 05:26:27 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:200001)
4 years, 1 month ago (2016-11-16 08:33:13 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 08:35:00 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cd43abe6b873841f33cdbe5cc2789bd1611a3d4c
Cr-Commit-Position: refs/heads/master@{#432429}

Powered by Google App Engine
This is Rietveld 408576698