Sub label api score (#7113)

* Support setting sub label scores via API

* Update docs

* Update docs

* Formatting

* Throw error when score is outside expected bounds

* Fix / cleanup
This commit is contained in:
Nicolas Mowen
2023-07-14 05:28:16 -06:00
committed by GitHub
parent 6d34f2229b
commit 6adc810145
3 changed files with 25 additions and 7 deletions

View File

@@ -217,7 +217,8 @@ Sub labels must be 100 characters or shorter.
```json
{
"subLabel": "some_string"
"subLabel": "some_string",
"subLabelScore": 0.79,
}
```

View File

@@ -74,7 +74,7 @@ Message published for each changed event. The first message is published when th
"frame_time": 1607123962.082975,
"snapshot_time": 1607123961.837752,
"label": "person",
"sub_label": null,
"sub_label": ["John Smith", 0.79],
"top_score": 0.958984375,
"false_positive": false,
"start_time": 1607123955.475377,