Expand description
Utility functions for a yolo model.
FunctionsΒ§
- detect
- Performs the actual detection and outputs the results.
- get_env π
- Fetches an environment variable, or returns a default value if it is not set.
- intersection π
- Finds the overlapping area between two bounding boxes. Returns a negative value if the boxes donβt overlap.
- load_
model - Loads a YOLO model from the path specified by the environment variable
SAURON_MODEL_PATH. - post_
process π - Performs non-maximum suppression on the detections.
- pre_
process π - Pre-processes an image for YOLO detection.
- union π
- Finds the total area covered by both bounding boxes (But breaks if the boxes donβt overlap).