File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 11import cv2
22from src .yolov3 .detection import GunDetection , ClothesDetection
3- from src .utils import sendP , find_guy , countCameras
3+ from src .utils import sendP , countCameras
44
55def 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
4542if __name__ == "__main__" :
4643 main ()
You can’t perform that action at this time.
0 commit comments