New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 3 users

Issue metadata

Status: Fixed
Closed: Dec 2016
EstimatedDays: ----
NextAction: ----
OS: Linux , Android
Pri: 3
Type: Bug

Blocked on:
issue 672571

Sign in to add a comment

Issue 670975: ImageData not a valid parameter for detect in Barcode Scanner

Reported by, Dec 3 2016 Project Member

Issue description


Spec says imageData from a canvas is a valid paramter for ImageBitmapSource, but when provided I get

TypeError: Failed to execute 'detect' on 'BarcodeDetector': The provided value is not of type '(CSSImageValue or HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)'

Comment 1 by, Dec 4 2016

Labels: ShapeDetection

Comment 2 by, Dec 8 2016

Blockedon: 672571
Status: Started (was: Untriaged)
Got a CL doing the trick needed here (
but it needed some dirty trick with the input parameter, instead
wait until  is landed and use ImageBitmapSource.

Comment 3 by, Dec 15 2016

Project Member
The following revision refers to this bug:

commit b935b59277c7f3cdc38d560fb6e305274f4e995c
Author: mcasas <>
Date: Thu Dec 15 03:40:31 2016

ShapeDetection: use ImageBitmapSource as input and support ImageData

This CL :

- s/CanvasImageSource/ImageBitmapSource/ in the idl following and

 CanvasImageSource [1] is almost a subset of ImageBitmapSource [2]
(the former can be a CSSImageValue, but we don't care much
about it for this Spec), so this CL is small in that sense.

- Adds support for ImageData as a source for detect()ion,
and adds a LayoutTest for it.


BUG= 670975 

Cr-Commit-Position: refs/heads/master@{#438725}


Comment 4 by, Dec 15 2016

Labels: Needs-Verification
Status: Fixed (was: Started)

Sign in to add a comment