提交 00d38a95 编写于 作者: C channingss

update model version=1.1.0 for demo

上级 b1f4ea26
...@@ -40,7 +40,7 @@ index = 0 ...@@ -40,7 +40,7 @@ index = 0
data = [] data = []
capture = cv2.VideoCapture(0) # 打开摄像头 capture = cv2.VideoCapture(0) # 打开摄像头
#capture = cv2.VideoCapture('/Users/chenlingchi/Downloads/crowd.mp4') # 打开视频文件 #capture = cv2.VideoCapture('./test_video.mp4') # 打开视频文件
while True: while True:
frameData = {} frameData = {}
ret, frame = capture.read() # frame即视频的一帧数据 ret, frame = capture.read() # frame即视频的一帧数据
...@@ -82,7 +82,7 @@ while True: ...@@ -82,7 +82,7 @@ while True:
maskIndex += 1 maskIndex += 1
color = (0, 255, 0) color = (0, 255, 0)
label_cn = "口罩" label_cn = "口罩"
if label == 'NO MASK': if label == 'NO MASK':
color = (0, 0, 255) color = (0, 0, 255)
label_cn = "无口罩" label_cn = "无口罩"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册