Revert "Désactiver garbage collection automatique pour éliminer les freezes périodiques MJPEG"
This reverts commit f23eb628a3.
This commit is contained in:
@ -10,7 +10,6 @@ UDP n'est pas disponible, pour tester sans le Pi Zero.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import gc
|
||||
import json
|
||||
import socket
|
||||
import sys
|
||||
@ -380,9 +379,6 @@ class MJPEGHandler(BaseHTTPRequestHandler):
|
||||
def main():
|
||||
global _running
|
||||
|
||||
gc.disable()
|
||||
print("[CAM] GC automatique désactivé pour éviter les pauses.")
|
||||
|
||||
parser = argparse.ArgumentParser(description="WireClaw — réception caméra + YOLOv8")
|
||||
parser.add_argument("--no-yolo", action="store_true", help="Désactiver l'inférence YOLOv8 (flux brut)")
|
||||
args = parser.parse_args()
|
||||
@ -422,8 +418,6 @@ def main():
|
||||
finally:
|
||||
_running = False
|
||||
server.shutdown()
|
||||
gc.enable()
|
||||
gc.collect()
|
||||
print("[CAM] Arrêt.")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user