Demo: https://jsbin.com/hameva/edit?html,css,js
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 mcasas@chromium.org
, Dec 4 2016Labels: ShapeDetection