Skip to content

Commit c50b5d7

Browse files
committed
Added some comments
1 parent 2c8b531 commit c50b5d7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Yolo.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
#
2+
# Object Detection with Yolo.V3
3+
#
4+
# Coded by Amir otd :)[https://github.com/amirotd]
5+
16
import numpy as np
27
import cv2
38
import os
49

510

6-
class Yolo:
11+
class YOLO:
712
def __init__(self, img, path, conf=0.5, thresh=0.3):
813
self.conf = conf
914
self.thresh = thresh

YoloGUI.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
#
2+
# Object Detection with Yolo.V3
3+
#
4+
# Coded by Amir otd :)[https://github.com/amirotd]
5+
16
import tkinter as tk
27
from tkinter import filedialog, messagebox
3-
from Yolo import Yolo
8+
from Yolo import YOLO
49

510

611
class YoloGui(tk.Tk):
@@ -87,7 +92,7 @@ def set_path(self):
8792

8893
def start(self):
8994
try:
90-
y = Yolo(self.image_var, self.yolo_var, float(self.confidence_var.get()), float(self.threshold_var.get()))
95+
y = YOLO(self.image_var, self.yolo_var, float(self.confidence_var.get()), float(self.threshold_var.get()))
9196
y.start_process()
9297
except:
9398
messagebox.showerror("Error", "Please Enter a Valid Path")

0 commit comments

Comments
 (0)