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 argparse
|
||||||
import gc
|
|
||||||
import json
|
import json
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
@ -380,9 +379,6 @@ class MJPEGHandler(BaseHTTPRequestHandler):
|
|||||||
def main():
|
def main():
|
||||||
global _running
|
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 = 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)")
|
parser.add_argument("--no-yolo", action="store_true", help="Désactiver l'inférence YOLOv8 (flux brut)")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
@ -422,8 +418,6 @@ def main():
|
|||||||
finally:
|
finally:
|
||||||
_running = False
|
_running = False
|
||||||
server.shutdown()
|
server.shutdown()
|
||||||
gc.enable()
|
|
||||||
gc.collect()
|
|
||||||
print("[CAM] Arrêt.")
|
print("[CAM] Arrêt.")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user