Configuration
Perception Apps are configured using a TOML file calledrobotapp.toml
. The file is located in root directory of the app. Here is an example one:Toml
1config_version = "2.0"
2
3[info]
4name = "{{{ APP_NAME }}}"
5description = "This is a generated description. Replace it with your own."
6
7[runtime]
8application = "app.py#Application"
9workdir = "/app"
10
11[runtime.runs_on]
12type = "image"
13name = "ghcr.io/luxonis/robothub-app-v2:2023.326.2033-rvc2-regular"
14
15[[configuration]]
16visual = "section"
17title = "Upload intervals"
18
19[[configuration]]
20key = "image_event_upload_interval_minutes"
21label = "Image event upload interval (minutes)"
22field = "num_range"
23step = 1
24min = 1
25max = 60
26initial_value = 1
Reference
Root fields
config_version
The version of the configuration file format. Currently, the only supported version is 2.0
.Info
Theinfo
section contains information about the app, such as its name and description.Field | Description |
---|---|
info.name | The name of the app. Currently unused. |
info.description | The description of the app. Currently unused. |
Runtime
Theruntime
section configures the runtime environment of the app.Field | Description |
---|---|
runtime.application | The name of the Python file containing the app's main logic. The path is relative to the root directory. |
runtime.workdir | The working directory of the app. Defaults to /app . |
runtime.permissions | The permissions required to run the app. Defaults to [] .An example:Toml
|
runtime.runs_on | The runtime container in which the app will run.type = "image" The app will run in a container based on the specified image. The image is pulled before installation. If the registry is private (requires authentication), see Container Registry configuration.An example:Toml
|
Configuration
Theconfiguration
section defines the install-time configuration of the app.VisualType | Description |
---|---|
divider | The divider to use for the configuration section.An example: Toml
|
section | The section to use for the configuration section.An example: Toml
|
Type | Description |
---|---|
boolean | A boolean field.An example: Toml
|
num_range | A number range field.An example: Toml
|
choice | A choice field.An example: Toml
|
text | A text field.An example: Toml
|
time_range | A time range field.An example: Toml
|
roi_rect4_selector | A ROI selector on live stream field. Defined by 2 points (x0, y0) and (x1, y1).An example: Toml
|
roi_rect8_selector | A ROI selector on live stream field. Defined by 4 points (x0, y0), (x1, y1), (x2, y2), (x3, y3).An example: Toml
|