Skip to content

Commit

Permalink
Update VariableClass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Aug 10, 2024
1 parent c887eb3 commit 623a488
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/VariableClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ def __init__(self):
if os.getenv("MAX_NUMBER_OF_PREDICTIONS") is not None:
self.MAX_NUMBER_OF_PREDICTIONS = int(
os.getenv("MAX_NUMBER_OF_PREDICTIONS", "50"))
if os.getenv("MIN_DISTANCE") is not None:
if os.getenv("MIN_DISTANCE") is not None and os.getenv("MIN_DISTANCE") != "":
self.MIN_DISTANCE = int(os.getenv("MIN_DISTANCE", "500"))
if os.getenv("MIN_STATIC_DISTANCE") is not None:
if os.getenv("MIN_STATIC_DISTANCE") is not None and os.getenv("MIN_STATIC_DISTANCE") != "":
self.MIN_STATIC_DISTANCE = int(
os.getenv("MIN_STATIC_DISTANCE", "100"))
if os.getenv("MIN_DETECTIONS") is not None:
if os.getenv("MIN_DETECTIONS") is not None and os.getenv("MIN_DETECTIONS") != "":
self.MIN_DETECTIONS = int(os.getenv("MIN_DETECTIONS", "5"))

ALLOWED_CLASSIFICATIONS_STR = os.getenv("ALLOWED_CLASSIFICATIONS")
Expand Down

0 comments on commit 623a488

Please sign in to comment.