codrizsain commited on
Commit
13c5500
·
verified ·
1 Parent(s): 595ba02

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +9 -8
index.html CHANGED
@@ -141,14 +141,15 @@
141
  responAudio.currentTime = 0;
142
  }).catch(()=>console.log("Audio siap"));
143
 
144
- const camera = new Camera(videoElement, {
145
- onFrame: async () => {
146
- await hands.send({image: videoElement});
147
- },
148
- width: 640,
149
- height: 480
150
- });
151
- camera.start();
 
152
  });
153
  </script>
154
  </body>
 
141
  responAudio.currentTime = 0;
142
  }).catch(()=>console.log("Audio siap"));
143
 
144
+ // Nyalakan Kamera (Versi Ringan)
145
+ const camera = new Camera(videoElement, {
146
+ onFrame: async () => {
147
+ await hands.send({image: videoElement});
148
+ },
149
+ width: 320, // Ubah dari 640 menjadi 320
150
+ height: 240 // Ubah dari 480 menjadi 240
151
+ });
152
+ camera.start();
153
  });
154
  </script>
155
  </body>