Commit 29f64cf
authored
Fix bug in wait_for_confident_result (#317)
The `confidence_threshold` parameter defaults to `None`, and the
docstring states that if it is `None` then the detector's confidence
threshold will be used. However, it currently only fetches the
detector's confidence threshold if the value for `image_query` is a
string - if you pass it an `ImageQuery` object, `confidence_threshold`
will still be `None` when passed to `iq_is_confident`, which will then
error when trying to do `iq.result.confidence >= confidence_threshold`.
This fixes it so it will always fetch the detector's confidence
threshold if the inputted `confidence_threshold` is None.1 parent 81e1e09 commit 29f64cf
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
| 1007 | + | |
| 1008 | + | |
1007 | 1009 | | |
1008 | 1010 | | |
1009 | 1011 | | |
| |||
0 commit comments