|
|
|
@@ -15,17 +15,19 @@ class Operator: |
|
|
|
send_output, |
|
|
|
) -> DoraStatus: |
|
|
|
"""TODO :Description. |
|
|
|
|
|
|
|
Args: |
|
|
|
dora_event: Event containing an `id`, `data` and `metadata`. |
|
|
|
send_output Callable[[str, bytes | pa.Array, Optional[dict]], None]: |
|
|
|
Function for sending output to the dataflow: |
|
|
|
- First argument is the `output_id` |
|
|
|
- Second argument is the data as either bytes or `pa.Array` |
|
|
|
- Third argument is dora metadata dict |
|
|
|
e.g.: `send_output("bbox", pa.array([100], type=pa.uint8()), dora_event["metadata"])`. |
|
|
|
|
|
|
|
Returns: |
|
|
|
|
|
|
|
Parameters |
|
|
|
---------- |
|
|
|
dora_event : dict |
|
|
|
Event containing an `id`, `data`, and `metadata`. |
|
|
|
send_output : Callable[[str, bytes | pa.Array, Optional[dict]], None] |
|
|
|
Function for sending output to the dataflow. The first argument is the `output_id`, the second |
|
|
|
argument is the data (either as bytes or a pa.Array), and the third argument is the dora metadata |
|
|
|
dictionary. For example: |
|
|
|
send_output("bbox", pa.array([100], type=pa.uint8()), dora_event["metadata"]). |
|
|
|
|
|
|
|
Returns |
|
|
|
------- |
|
|
|
DoraStatus: |
|
|
|
CONTINUE means that the operator will |
|
|
|
keep listening for further inputs. |
|
|
|
|