zbar-wasm example

Image source

If the image does not appear then loading may have been blocked by the server's CORS policy.

Result


    
Using OffscreenCanvas for image transfer:
Time since previous scan: ms
drawImage(): ms
getImageData(): ms
scanImageData(): ms