changed compression quality

This commit is contained in:
2026-09-24 05:53:31 +02:00
parent 291159a819
commit b36a950f85
+3 -1
View File
@@ -1,6 +1,8 @@
import styles from './Object_Detection.module.css'; import styles from './Object_Detection.module.css';
import { useRef, useEffect, useState } from 'react' import { useRef, useEffect, useState } from 'react'
const FRAME_QUALITY = 0.7;
function Object_Detection() { function Object_Detection() {
const videoRef = useRef(null); const videoRef = useRef(null);
const canvasRefBBox = useRef(null); const canvasRefBBox = useRef(null);
@@ -66,7 +68,7 @@ function Object_Detection() {
} catch (e) { } catch (e) {
setError(true); setError(true);
} }
}, "image/jpeg", 1); }, "image/jpeg", FRAME_QUALITY);
}; };
const printDefault = () => { const printDefault = () => {