From b36a950f8546684958492254b41f0615976df2fd Mon Sep 17 00:00:00 2001 From: Marvin Date: Thu, 24 Sep 2026 05:53:31 +0200 Subject: [PATCH] changed compression quality --- website/src/Object_Detection.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/src/Object_Detection.jsx b/website/src/Object_Detection.jsx index c6f3875..c8f1383 100644 --- a/website/src/Object_Detection.jsx +++ b/website/src/Object_Detection.jsx @@ -1,6 +1,8 @@ import styles from './Object_Detection.module.css'; import { useRef, useEffect, useState } from 'react' +const FRAME_QUALITY = 0.7; + function Object_Detection() { const videoRef = useRef(null); const canvasRefBBox = useRef(null); @@ -66,7 +68,7 @@ function Object_Detection() { } catch (e) { setError(true); } - }, "image/jpeg", 1); + }, "image/jpeg", FRAME_QUALITY); }; const printDefault = () => {