Spaces:
Sleeping
Sleeping
Update static/app.js
Browse files- static/app.js +4 -1
static/app.js
CHANGED
|
@@ -189,7 +189,10 @@ function renderPresenceList() {
|
|
| 189 |
|
| 190 |
async function startCamera() {
|
| 191 |
try {
|
| 192 |
-
|
|
|
|
|
|
|
|
|
|
| 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;
|