diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..f33a02cd --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot + +version: 2 +updates: + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly diff --git a/roboflow/models/keypoint_detection.py b/roboflow/models/keypoint_detection.py index a0e86561..12e5a215 100644 --- a/roboflow/models/keypoint_detection.py +++ b/roboflow/models/keypoint_detection.py @@ -26,6 +26,7 @@ def __init__( id: str, name: Optional[str] = None, version: Optional[str] = None, + confidence: Optional[int] = 40, local: Optional[str] = None, ): """ @@ -37,6 +38,7 @@ def __init__( name (str): is the name of the project version (str): version number local (str): localhost address and port if pointing towards local inference engine + confidence (int): A threshold for the returned predictions on a scale of 0-100. colors (dict): colors to use for the image preprocessing (dict): preprocessing to use for the image @@ -48,6 +50,7 @@ def __init__( self.__api_key = api_key self.id = id self.name = name + self.confidence = confidence self.version = version self.base_url = "https://detect.roboflow.com/" @@ -150,6 +153,7 @@ def __generate_url(self): self.base_url + without_workspace + "/" + str(version), "?api_key=" + self.__api_key, "&name=YOUR_IMAGE.jpg", + f"&confidence={self.confidence}", ] )