segmenter: try to add support for printing object_id
This commit is contained in:
parent
20e07a110d
commit
2c9a6df20f
|
@ -214,11 +214,15 @@ class SegmenterProcess(multiprocessing.Process):
|
||||||
morphocut.str.Format("Object {object_id}", object_id=object_id)
|
morphocut.str.Format("Object {object_id}", object_id=object_id)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
id_json = morphocut.str.Format(
|
||||||
|
'{"object_id":"{object_id}"}', object_id=object_id
|
||||||
|
)
|
||||||
|
|
||||||
# Publish the object_id to via MQTT to Node-RED
|
# Publish the object_id to via MQTT to Node-RED
|
||||||
morphocut.Call(
|
morphocut.Call(
|
||||||
self.segmenter_client.client.publish,
|
self.segmenter_client.client.publish,
|
||||||
"status/segmenter/object_id",
|
"status/segmenter/object_id",
|
||||||
f'{{"object_id":"{object_id}"}}',
|
id_json,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set the LEDs as Green
|
# Set the LEDs as Green
|
||||||
|
|
Loading…
Reference in a new issue