leon 2 mesi fa
parent
commit
3262ce0966
2 ha cambiato i file con 4 aggiunte e 14 eliminazioni
  1. 3 0
      Makefile
  2. 1 14
      infer.py

+ 3 - 0
Makefile

@@ -9,6 +9,8 @@ debug:
 status:
 	@ps -ef | grep infer.py | grep -v grep
 
+kill:
+	@ps -ef | grep infer.py | grep -v grep | awk '{print $2}' | xargs kill
 
 log:
 	@tail -f log/runtime.log
@@ -19,6 +21,7 @@ help:
 	@echo "make start      Start server"
 	@echo "make status     Check server status"
 	@echo "make debug      Execute python3 infer.py"
+	@echo "make kill       Kill server"
 	@echo "make log        Print log"
 	@echo "make help       Show this help message"
 	@echo ""

+ 1 - 14
infer.py

@@ -272,17 +272,4 @@ if __name__ == "__main__":
             except Exception as error:
                 logger.error('Error : ', str(error))
     logger.info("=======  EXIT  =======")
-    #cv2.imwrite("result/result.jpg", image)
-    
-
-"""
-1. 检测工服、安全帽等
-2. 检测人的模型
-3. 安全帽的分类
-
-
-逻辑
-1. 检测人
-2. 检测安全帽、工服、头  检测到人没有工服报警
-3. 安全帽头再分类
-"""
+    #cv2.imwrite("result/result.jpg", image)