Skip to content

Commit

Permalink
Expose the MJPEG stream from the segmenter
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanjli committed May 7, 2024
1 parent 80fcbbc commit 7131e9f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployments/segmenter/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
services:
worker:
image: ghcr.io/planktoscope/device-backend-processing-segmenter:sha-ebd357f
ports:
- 8001:8001
volumes:
- ./machine-name:/var/lib/planktoscope/machine-name
- ~/.local/share/planktoscope/data:/home/pi/data
Expand Down
10 changes: 10 additions & 0 deletions deployments/segmenter/forklift-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ deployment:
protocol: mqtt
nonblocking: false # absence of the MQTT server is not yet handled
provides:
listeners:
- description: HTTP server to serve previews of segmented objects
port: 8001
protocol: tcp
services:
- description: MQTT handling of segmenter commands and broadcasting of segmenter statuses
tags: [planktoscope-api-v2]
Expand All @@ -27,6 +31,12 @@ deployment:
- /status/segmenter/name
- /status/segmenter/object_id
- /status/segmenter/metric
- description: Last segmented object MJPEG stream from the segmenter
tags: [mjpeg-stream]
port: 8001
protocol: http
paths:
- /object.mjpg

features:
dev-src:
Expand Down

0 comments on commit 7131e9f

Please sign in to comment.