diff --git a/worker.md b/worker.md index ee3eb67..f8bc0ed 100644 --- a/worker.md +++ b/worker.md @@ -59,15 +59,17 @@ This message is crucial for the backend to monitor your worker's health and stat "modelId": 101, "modelName": "General Object Detection", "online": true, - "cropX": 100, - "cropY": 200 + "cropX1": 100, + "cropY1": 200, + "cropX2": 300, + "cropY2": 400 } ] } ``` > **Note:** -> - `cropX` and `cropY` (optional, integer) should be included in each camera connection to indicate the initial crop coordinates for that subscription. +> - `cropX1`, `cropY1`, `cropX2`, `cropY2` (optional, integer) should be included in each camera connection to indicate the crop coordinates for that subscription. ### 4.2. Image Detection @@ -180,14 +182,16 @@ Instructs the worker to process a camera's RTSP stream using the configuration f "modelUrl": "http://storage/models/us-lpr.mpta", "modelName": "US-LPR-and-Vehicle-ID", "modelId": 102, - "cropX": 100, - "cropY": 200 + "cropX1": 100, + "cropY1": 200, + "cropX2": 300, + "cropY2": 400 } } ``` > **Note:** -> - `cropX` and `cropY` (optional, integer) specify the initial crop coordinates for the camera stream. These values are configured per display and passed in the subscription payload. If not provided, the worker should process the full frame. +> - `cropX1`, `cropY1`, `cropX2`, `cropY2` (optional, integer) specify the crop coordinates for the camera stream. These values are configured per display and passed in the subscription payload. If not provided, the worker should process the full frame. > > **Important:**