diff --git a/backend/main.py b/backend/main.py index 2ec434c..2d360f7 100644 --- a/backend/main.py +++ b/backend/main.py @@ -181,7 +181,8 @@ async def api_capturer(): capture_en_cours = True try: - chemin = camera.capturer() + loop = asyncio.get_event_loop() + chemin = await loop.run_in_executor(None, camera.capturer) finally: capture_en_cours = False if chemin is None: