Comments (14)
while not ideal, this worked for me bower install --save https://github.com/schmich/instascan/releases/download/1.0.0/instascan.min.js
. Will install to bower_components/instascan.min/index.js
from instascan.
Hi.
I set up the code in order to use by default the smartphone back camera but it keeps mirroring the QR code. could you please tell me if I am doing anything wrong... ?
this is my script:
<script type="text/javascript">
let scanner = new Instascan.Scanner({ video: document.getElementById('preview') });
scanner.addListener('scan', function (content) {
console.log(content);
$("#QRLink").text(content);
$("#QRLink").attr("href",content);
});
let opts = {
backgroundScan: false,
mirror: false
};
Instascan.Camera.getCameras().then(function (cameras) {
if (cameras.length > 0) {
scanner.start(cameras[1]);
} else {
console.error('No cameras found.');
}
}).catch(function (e) {
console.error(e);
});
</script>
I already tried mirror : false and mirror : true but none is working.
Thank in advance,
PS
The https://schmich.github.io/instascan/ camera does not work in Windows phone either,
from instascan.
This would be super helpful!
from instascan.
Any reason why this needs to be on the 2.0.0 milestone? This is relatively easy to accomplish.
from instascan.
Is there any indication on when this is planned?
from instascan.
It would be amazing to have bower support! :)
from instascan.
Is there a way to have a CND for binding it?
from instascan.
+1
from instascan.
Hello, how can I use it in my ionic 4 project ?
Thanks in advance
from instascan.
I am also trying to integrate into an Ionic project, but when I build I am getting an error in the zxing.js file:
Module not found: Error: can't resolve 'fs' in .../instascan/src.
Is anybody else seeing this error or found a way around it. Thanks.
from instascan.
Hi.
I set up the code in order to use by default the smartphone back camera but it keeps mirroring the QR code. could you please tell me if I am doing anything wrong... ?
this is my script:<script type="text/javascript"> let scanner = new Instascan.Scanner({ video: document.getElementById('preview') }); scanner.addListener('scan', function (content) { console.log(content); $("#QRLink").text(content); $("#QRLink").attr("href",content); }); let opts = { backgroundScan: false, mirror: false }; Instascan.Camera.getCameras().then(function (cameras) { if (cameras.length > 0) { scanner.start(cameras[1]); } else { console.error('No cameras found.'); } }).catch(function (e) { console.error(e); }); </script>
I already tried mirror : false and mirror : true but none is working.
Thank in advance,
PS
The https://schmich.github.io/instascan/ camera does not work in Windows phone either,
try this:
let opts = {
video: document.getElementById('preview'),
backgroundScan: false,
mirror: false
};
let scanner = new Instascan.Scanner(opts);
from instascan.
Module name "instascan" has not been loaded yet for context: _. Use require([])
error faced.
from instascan.
Where can I find the file instascan.min.js
I can't see it anywhere in the package
from instascan.
Hi could you perhaps upload a code with a start and stop button for the webcam? Unfortunately, to use only scanner.stop() in a new function does not work for me :-(
thanks a lot.
from instascan.
Related Issues (20)
- Tmz
- instascanaaa HOT 1
- Getting o.forEach is not a function while running on https. Please give me any solution. but it works on localhost
- Only one instance of babel-polyfill is allowed HOT 1
- Instascan is not displaying the camera although camera is active HOT 1
- Error : Cannot access video stream (TypeError). HOT 1
- Orientation Bug on iOS 15. HOT 5
- iOS 15 loads camera, not picking up QR code on any browser HOT 1
- Uncaught RangeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Out of memory at ImageData creation
- i
- iOS 15 Cannot Detect QRCode !!!! HOT 7
- Result cant show up in console log
- Orientation Change Scanner Bug HOT 9
- Uncaught (in promise) TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed. HOT 1
- Instascan do not recognize coloured QR codes, e.g. white code on green or red background HOT 3
- Error Invalid length
- iOS back camera cannot be used HOT 2
- Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true HOT 1
- cannot scan barcode only qr HOT 2
- getting [{"id":"","name":"null","_stream":null}] after Webview 118 update
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 instascan.