The configuration JSON for the classify worker specifies various parameters and settings used during the classification process.

You can provide a custom configuration in Settings.

Untitled

The configuration JSON can contain a subset of the configuration:

{
  // specify only threshold parameters
	"threshold": {
		"safe": 0.1,
		"high": 0.9
	},
}

Below is the detailed documentation of the configuration fields:

{
	"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
}

Configuration Fields

Thresholds

Field Type Description
safe float The threshold below which a classification is considered safe. Default: 0.1
high float The threshold above which a classification is considered high risk. Default: 0.9

General Settings

Field Type Description
max_height int The maximum height of the video frames.
target_fps int The target frames per second for video processing.
use_sws boolean A flag indicating whether to use software scaling.

Model Settings

Field Type Description
px_act_thresh int Pixel activation threshold.
px_act_thresh_by_frame int Pixel activation threshold by frame.

Highlighter Settings

Field Type Description
highlight_info boolean A flag indicating whether to highlight information in the output.