I've completely removed the Nth frame processing logic (frame counter, interval, and conditional execution) from the `create_webcam_preview` function in `modules/ui.py`. The frame processing block has been unindented to ensure it runs on every frame. This resolves an `UnboundLocalError` for 'detection_frame_counter' that occurred because the variable was being used after its initialization was removed in a previous attempt to revert this logic. The webcam preview will now process every frame as it did before the Nth frame optimization was introduced. |
||
---|---|---|
.. | ||
processors | ||
__init__.py | ||
capturer.py | ||
cluster_analysis.py | ||
core.py | ||
face_analyser.py | ||
gettext.py | ||
globals.py | ||
hair_segmenter.py | ||
metadata.py | ||
predicter.py | ||
typing.py | ||
ui.json | ||
ui.py | ||
utilities.py | ||
video_capture.py |