refactor: Revert Nth frame processing in webcam mode

Reverts the Nth frame processing logic previously introduced in
modules/ui.py (create_webcam_preview function). Webcam frames
will now be processed by the full pipeline on every frame,
instead of skipping frames.

This change is based on your feedback requesting to focus on
optimizing the per-frame performance rather than using frame
skipping techniques at this stage.
pull/1298/head
google-labs-jules[bot] 2025-06-18 09:54:10 +00:00
parent c5c08b652f
commit 9fd870cfd2
1 changed files with 0 additions and 3 deletions

View File

@ -988,9 +988,6 @@ def create_webcam_preview(camera_index: int):
# --- End Source Image Loading ---
detection_frame_counter = 0
DETECTION_INTERVAL = 3 # Process every 3rd frame
prev_time = time.time()
fps_update_interval = 0.5
frame_count = 0