Comments (7)
Hmm not seen this issue before, I'll investigate. Sorry about that.
from jsqr.
@pewien7 If it was possible would you be willing to send a screenshot/dump of the frame that is causing the failure? Assuming this is causing the webcam to freeze it should be easy to capture a screenshot I think? If not no worries but could make it easier to create a reproducible test case.
from jsqr.
I found the solution. Your code is ok. The problem is navigator.mediaDevices.getUserMedia which losing connection with camera. It happens time to time. Setting lower frameRate helped. But best solution is to check if your track is 'muted' if so just restart stream. Something like that:
if(video.srcObject.getTracks()[0].muted)
{
//here is func to restart stream
}
from jsqr.
I made a screen where I will read several qr code in sequend, I open the reader all right and execute the tick () function, but after that if I click to read the next the camera appears on my screen more locked in the previous qrcode.
I'm using video.pause on the tick;
and video.play when it enters the screen.
from jsqr.
@digosts Does the issue persist if you do not use jsQR? That is to say if you set up the same code but don't pass the library any data/don't even include the library do you still run into the issue?
from jsqr.
Closing due to lack of activity - If you still have questions please comment/re-open and I'd be happy to help.
from jsqr.
Hey so it turns out our code did have an issue that was causing the "Invalid typed array length: Infinity" which has been fixed in version 1.0.6
. I don't think this is necessarily related to the video pausing playing stuff, but either way it's been fixed.
from jsqr.
Related Issues (20)
- aways wrong content for each times HOT 1
- QR Code that cannot be parsed in browser JS HOT 1
- Hello, may I ask if the QR code with lighter color can not be recognized? (请问是不能识别颜色较浅的二维码吗?) HOT 3
- How pass blob imageData rather than Url HOT 4
- This QR code cannot be recognized HOT 1
- Big QRCode cannot be parsed HOT 2
- Can't read QR code on iOS16 HOT 4
- qr on oracle
- Would you consider exposing intermediate decoding data?
- Unable to read QR code
- Would it be possible to scan barcodes?
- Error: Malformed data passed to binarizer. HOT 2
- Unable to read this Qrcode HOT 1
- This JSQR library do not work reading barcode in image. I think it has algorith issue HOT 2
- What's going on here? Why is the frame misaligned? HOT 1
- EAN-13 Format
- I discovered a QR code that cannot be recognized.
- crop qrcode error
- Cannot read transparent pixels
- Why do some images have return values? Some pictures don't
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 jsqr.