Browse Source

Replace typo `INPUT` to `STOP`

tags/v0.3.1-rc
haixuanTao 2 years ago
parent
commit
2a165ab457
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      examples/python-dataflow/object_detection.py
  2. +1
    -1
      examples/python-dataflow/plot.py
  3. +1
    -1
      examples/python-dataflow/webcam.py
  4. +1
    -1
      examples/python-operator-dataflow/webcam.py

+ 1
- 1
examples/python-dataflow/object_detection.py View File

@@ -27,7 +27,7 @@ for event in node:
node.send_output("bbox", arrays, event["metadata"])
else:
print("[object detection] ignoring unexpected input:", event_id)
elif event_type == "INPUT":
elif event_type == "STOP":
print("[object detection] received stop")
elif event_type == "ERROR":
print("[object detection] error: ", event["error"])


+ 1
- 1
examples/python-dataflow/plot.py View File

@@ -92,7 +92,7 @@ for event in node:
case DoraStatus.STOP:
print("plotter returned stop status")
break
elif event_type == "INPUT":
elif event_type == "STOP":
print("received stop")
else:
print("received unexpected event:", event_type)

+ 1
- 1
examples/python-dataflow/webcam.py View File

@@ -42,7 +42,7 @@ while time.time() - start < 10:
cv2.imencode(".jpg", frame)[1].tobytes(),
event["metadata"],
)
elif event_type == "INPUT":
elif event_type == "STOP":
print("received stop")
break
else:


+ 1
- 1
examples/python-operator-dataflow/webcam.py View File

@@ -58,7 +58,7 @@ class Operator:
pa.array(frame.ravel()),
dora_event["metadata"],
)
elif event_type == "INPUT":
elif event_type == "STOP":
print("received stop")
else:
print("received unexpected event:", event_type)


Loading…
Cancel
Save