1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""TODO: Add docstring."""
"""Template docstring."""
"""Perform initialization tasks."""
"""TODO :Description.
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.
STOP means that the operator stop listening for inputs.
"""
return
"""Perform actions before being deleted."""