Allow `decodeImage` to be async
See original GitHub issueI’m working on implementing a QR Reader, based off of your other project, but with the “qr-scanner” dependency instead (looks smaller). The problem is, that is async, so I’m having to look into how to force it to be synchronous. It would be great if decodeFromImage
was async https://github.com/ericblade/quagga2/blob/master/src/decoder/barcode_decoder.js#L258
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How to properly use async function from onPress
I am trying to do some image processing using filters, and image package. I can make it work, but it hangs the UI....
Read more >HTMLImageElement.decoding - Web APIs | MDN
Decode the image asynchronously to reduce delay in presenting other ... The decoding property allows you to control whether or not the ...
Read more >Async/await status? - #142 by Max_Desiatov - Discussion
A and B1/B2 runs in parallel. let a = async taskA() let b: ... if condition ... let imageTmp = decodeImage(dataResource, imageResource) let...
Read more >What does the HTML image decoding async attribute do and ...
The decoding="async" attribute will tell the browser that it is OK for image decoding to be done at a later moment so that...
Read more >swift-evolution/0296-async-await.md at main - GitHub
Async functions allow asynchronous code to be written as straight-line code. ... decodeImage(dataResource, imageResource) { imageTmp, error in guard let ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ericblade Thanks! I’ll test it on Monday and let you know!
@ericblade It works great, thanks!