Comments (4)
I suspect that the video
height
and width
settings might influence the videoHeight
and videoWidth
attributes (i.e. the intrinsic resolution) of the video. If that is the case then the resolution might be too low to detect Code-128 but still sufficient to detect QR codes.
Could you therefore please also log videoEl.videoHeight
and videoEl.videoWidth
to see whether that is true?
Another test for my hypothesis would be to test whether other bar codes such as ean_13
also cannot be detected.
from barcode-detector-polyfill.
Thanks for your reply.
I printed videoEl.videoWidth
and videoEl.videoHeight
and see 640 x 480
so you are right.
I changed MediaTrackConstraints
for video and set width: { exact: 1920 }, height: { exact: 1080 }
now intrinsic resolution is 1920 x 1080
but steel cannot be detected code_128 :(
I take a picture from code_128
with great camera and the zoomed picture of code_128
be detected.
I tested ean_13
and be detected easily.
Have any solution?
from barcode-detector-polyfill.
Have you tried setting your width and height to the same values? I have found that an even numbered width/height along with an aspect ratio of one improves detection for code_128
.
from barcode-detector-polyfill.
No activity here for the last four weeks, so closing. Please reopen if necessary.
from barcode-detector-polyfill.
Related Issues (15)
- Issues loading @undecaf/zbar-wasm HOT 3
- About avoids the LGPL license issue? HOT 7
- Error when Loading HOT 6
- Error when using the polyfill HOT 2
- License confusion HOT 2
- Chrome: Failed to execute 'getImageData' on 'OffscreenCanvasRenderingContext2D' HOT 3
- Use offline HOT 2
- Scanner goes infinitely / doesn't stop after reading a barcode HOT 4
- [email protected] error HOT 9
- [BUG] Source map not found
- Update README bundling for zbar-wasm v0.10.0 HOT 6
- Missing dependencie on offline computer[BUG] HOT 1
- Could this detector be used in the Web Worker context? HOT 5
- [FEATURE] ES6 import support / configurable zbar.wasm source file HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barcode-detector-polyfill.