setThreshold method
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);
}