A clear crop often matters more than a huge image
Barcode detection can fail when the code occupies only a tiny part of a photo, is heavily blurred, or has strong glare. Cropping closer to the code before reading is often more useful than simply increasing the image dimensions.
The format name is useful context, not just decoration
The result includes both the detected format and its raw value. That distinction helps when the same-looking string could have come from QR, EAN, Code 128, or another symbology, especially when you are checking labels or test images.
A “not detected” result does not prove there is no code
Browser support, focus, contrast, perspective and damage can all affect detection. For an important barcode, try a cleaner image or another compatible browser before concluding that the code itself is invalid.
For example
If a shipping-label photo contains several printed elements, crop around the barcode first, run the reader, then compare the returned value with the human-readable number printed below the bars. That quick cross-check catches many photo-reading mistakes.