@@ -46,9 +46,7 @@ class DetectLandingPad:
4646 __MODEL_NAME = "best-2n.pt"
4747
4848 @classmethod
49- def create (
50- cls , model_directory : pathlib .Path
51- ) -> "tuple[bool, DetectLandingPad | None]" :
49+ def create (cls , model_directory : pathlib .Path ) -> "tuple[bool, DetectLandingPad | None]" :
5250 """
5351 model_directory: Directory to models.
5452 """
@@ -69,21 +67,15 @@ def create(
6967
7068 return True , DetectLandingPad (cls .__create_key , model )
7169
72- def __init__ (
73- self , class_private_create_key : object , model : ultralytics .YOLO
74- ) -> None :
70+ def __init__ (self , class_private_create_key : object , model : ultralytics .YOLO ) -> None :
7571 """
7672 Private constructor, use create() method.
7773 """
78- assert (
79- class_private_create_key is DetectLandingPad .__create_key
80- ), "Use create() method"
74+ assert class_private_create_key is DetectLandingPad .__create_key , "Use create() method"
8175
8276 self .__model = model
8377
84- def run (
85- self , image : np .ndarray
86- ) -> "tuple[list[bounding_box.BoundingBox], np.ndarray]" :
78+ def run (self , image : np .ndarray ) -> "tuple[list[bounding_box.BoundingBox], np.ndarray]" :
8779 """
8880 Converts an image into a list of bounding boxes.
8981
@@ -141,4 +133,4 @@ def run(
141133
142134 # ============
143135 # ↑ BOOTCAMPERS MODIFY ABOVE THIS COMMENT ↑
144- # ============mmit
136+ # ============mmit
0 commit comments