Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I really wish mdn samples showed output. As is semi-typical, the examples show console.log of the results, but no sample output is provided.

I'm mainly curious whether position information is provided, and whether or not multiple barcodes can be detected at once. Digging further I see the output is an array and cornerPoints are provided, but i keep feeling like these samples only show 50% of what I want to see.



I like to look at API specs to clear questions like this, e.g.

https://wicg.github.io/shape-detection-api/#barcode-detectio... BarcodeDetector#detect returns a sequence of detected barcodes, so depending on the implementation and input quality it should able to extract multiple barcodes.

https://wicg.github.io/shape-detection-api/#dictdef-detected... each DetectedBarcode has boundingBox/cornerPoints.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: