Skip to content

Commit

Permalink
Create yolo_v4.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jun 2, 2024
1 parent af4bb83 commit 022872f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/cosmic_pi_network/cvlib/yolo_v4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import cv2

class YOLOv4:
def __init__(self):
self.net = cv2.dnn.readNetFromDarknet("yolov4.cfg", "yolov4.weights")

def detect(self, image):
# Perform object detection using YOLOv4
pass

def draw_bounding_boxes(self, image, detections):
# Draw bounding boxes around detected objects
pass

0 comments on commit 022872f

Please sign in to comment.