setThreshold method

Future<void> setThreshold({
  1. required double threshold,
})

Set detection threshold. Both prob and NMS use the same value.

Implementation

Future<void> setThreshold({required double threshold}) {
  final t = threshold.clamp(0.0, 1.0);
  return PaddleDetectionPlatform.instance.setThreshold(probThreshold: t, nmsThreshold: t);
}