Skip to content

Commit

Permalink
Create object_detection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jun 2, 2024
1 parent 21758f8 commit a3a1452
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cosmic_pi_network/cvlib/object_detection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import cv2
import numpy as np

class ObjectDetection:
def __init__(self, yolo_v4: YOLOv4):
self.yolo_v4 = yolo_v4

def detect_objects(self, image: np.ndarray) -> list:
return self.yolo_v4.detect(image)

0 comments on commit a3a1452

Please sign in to comment.