vrfefavr commited on
Commit
a586513
·
verified ·
1 Parent(s): 7befe8e

Update static/app.js

Browse files
Files changed (1) hide show
  1. static/app.js +4 -1
static/app.js CHANGED
@@ -189,7 +189,10 @@ function renderPresenceList() {
189
 
190
  async function startCamera() {
191
  try {
192
- const stream = await navigator.mediaDevices.getUserMedia({ video: { width: 640, height: 480, facingMode: "user" } });
 
 
 
193
  video.srcObject = stream;
194
  video.onloadedmetadata = () => {
195
  canvas.width = video.videoWidth; canvas.height = video.videoHeight;
 
189
 
190
  async function startCamera() {
191
  try {
192
+ // Requested 1280x720 (HD) for maximum AI recognition detail
193
+ const stream = await navigator.mediaDevices.getUserMedia({
194
+ video: { width: 1280, height: 720, facingMode: "user" }
195
+ });
196
  video.srcObject = stream;
197
  video.onloadedmetadata = () => {
198
  canvas.width = video.videoWidth; canvas.height = video.videoHeight;