can save threshold

but not used in recognization
Merge remote-tracking branch 'origin/dialog' into dialog