pythoninferenceroboflow

How to set minimum confidence threshhold in Roboflows Inference API?


I have made a pretty good model with Roboflow and integrated it with python. I can't figure out how to set minimum confidence for the label to be shown. It works in HTML and JS.


Solution

  • Since you’ve implemented it in Python, you can use the Python package to set confidence threshold. https://docs.roboflow.com/python#methods

    highlighted code for setting confidence

    Example:

    model.confidence = 30