Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
brunovalenzisi committed Aug 21, 2023
1 parent 5eb33da commit ab3978f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<style>
/* In order to place the tracking correctly */
canvas.drawing, canvas.drawingBuffer {
width: 200px;
position: absolute;
left: 0;
top: 0;
Expand All @@ -23,7 +22,7 @@
<body>

<button id="comenzar">comenzar</button>
<div style="width:300px;" id="scanner-container"></div>
<div id="scanner-container"></div>
<select style="margin-top: 50px;" id="select" name="select"></select>
<input style="margin-top: 50px;" id="linterna" type="button" value="torch">

Expand Down
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function startScannerCam(cam) {

Quagga.init({
numOfWorkers: navigator.hardwareConcurrency,
locate: true,
locate: false,
inputStream: {
name: "Live",
type: "LiveStream",
Expand All @@ -28,12 +28,12 @@ function startScannerCam(cam) {
facingMode: "environment",
deviceId: `${cam}`
},
area: { // defines rectangle of the detection/localization area
top: "40%", // top offset
/*area: { // defines rectangle of the detection/localization area
top: "15%", // top offset
right: "5%", // right offset
left: "5%", // left offset
bottom: "40%" // bottom offset
},
bottom: "15%" // bottom offset
},*/
},

frecuency:30,
Expand Down

0 comments on commit ab3978f

Please sign in to comment.