forked from Github/frigate
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:
@@ -217,7 +217,8 @@ Sub labels must be 100 characters or shorter.
|
||||
|
||||
```json
|
||||
{
|
||||
"subLabel": "some_string"
|
||||
"subLabel": "some_string",
|
||||
"subLabelScore": 0.79,
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user