Skip to content

Commit 86c8ea1

Browse files
committed
updated thingies. u canf igure it out!!!
1 parent 97f07c8 commit 86c8ea1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

main.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import cv2
22
from src.yolov3.detection import GunDetection, ClothesDetection
3-
from src.utils import sendP, find_guy, countCameras
3+
from src.utils import sendP, countCameras
44

55
def main(tryall=True):
66
weight_path_gun = 'model/darknetGun.weights'
77
config_path_gun = 'gun.cfg'
88
gun_detection = GunDetection(weight_path_gun, config_path_gun)
99

1010
if not tryall:
11-
cam1 = cv2.VideoCapture(1)
11+
cam1 = cv2.VideoCapture(0)
1212
#cam2 = cv2.VideoCapture(1)
1313
cameras = [
1414
(cam1, "Zone 1")#, (cam2, 'Zone 2')
@@ -38,9 +38,6 @@ def main(tryall=True):
3838
clothes_detection = ClothesDetection(len(cameras))
3939
wearing,colour = clothes_detection.run_detection(cameras)
4040
print(f"wearing {wearing} and RGB {colour}")
41-
#rammi
42-
#have it run the clothes desction on the image here
43-
#goofy goober
4441

4542
if __name__ == "__main__":
4643
main()

0 commit comments

Comments
 (0)