JavaScript QRCode scanner using https://github.com/LazarSoft/jsqrcode
STEP 1: Install npm on your device first;
STEP 2: Load the submodules by running git submodule init
then git submodule update
STEP 3: Command npm start
on root path;
STEP 4: Access localhost:9000
with your browser, then you can see the same scene as demo.
To improve the recognition efficiency, there is an additional special image processing that desaturate a color. You can uncomment below code
<!--<canvas id="qr-canvas" width='300px' height="300px"></canvas>-->
and comment below code
<canvas id="qr-canvas" width='300px' height="300px" style="display: none"></canvas>
to see image processing result as below:
Copyright 2017 Caomeng Li
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.