Skip to content

Configuration

The configuration JSON specifies parameters used during the classification process. You can provide a custom configuration in Settings.

The configuration can contain a subset of all available fields:

{
"threshold": {
"safe": 0.1,
"high": 0.9
}
}
{
"threshold": {
"safe": 0.1,
"high": 0.9
},
"max_height": 320,
"target_fps": 3,
"use_sws": false,
"model": {
"px_act_thresh": 1,
"px_act_thresh_by_frame": 1
},
"highlight_info": true
}
FieldTypeDescription
safefloatThreshold below which a classification is considered safe. Default: 0.1.
highfloatThreshold above which a classification is considered high risk. Default: 0.9.

See Risk, labels, and scores for how thresholds determine risk levels.

FieldTypeDescription
max_heightintMaximum height of video frames.
target_fpsintTarget frames per second for video processing.
use_swsbooleanWhether to use software scaling.
FieldTypeDescription
px_act_threshintPixel activation threshold.
px_act_thresh_by_frameintPixel activation threshold per frame.
FieldTypeDescription
highlight_infobooleanWhether to include highlight information in the output.