diff --git a/api-customer/src/controllers/analyze_controller.py b/api-customer/src/controllers/analyze_controller.py index 61bab70d..27206468 100644 --- a/api-customer/src/controllers/analyze_controller.py +++ b/api-customer/src/controllers/analyze_controller.py @@ -1,4 +1,4 @@ -from flask import jsonify +from flask import jsonify, request from src.services.detection_service import DetectionService @@ -16,7 +16,9 @@ class AnalyzeController: def analyze(self): try : - fen = self._detection_service.analyze_single_frame(None) + payload = request.get_json() + print(payload) + fen = self._detection_service.analyze_single_frame(payload["image"]) return jsonify({"success": False, "payload": {"fen" : fen}}), 200 except Exception as e: print(e)