commit some docs and ppts

This commit is contained in:
Tang1705
2020-08-02 11:29:42 +08:00
parent 88561f34d7
commit c5c560855a
18 changed files with 64 additions and 38 deletions

View File

@@ -101,9 +101,11 @@ def fall_detect(cnts, defined_min_area, frame, prevX, prevY, xList, yList, cente
draw.text((10, 10), text="Fall Detected", font=font,
fill=(255, 0, 0))
frame = cv2.cvtColor(np.array(img_rd), cv2.COLOR_RGB2BGR)
cv2.imwrite('fall_detection.jpg', frame)
time_snap = datetime.datetime.now()
cv2.imwrite('fall_detection' + str(time_snap).replace(':', '') + '.jpg', frame)
if (datetime.datetime.now() - pre).total_seconds() > 5:
t = threading.Thread(target=post(event=3, imagePath='fall_detection.jpg'))
t = threading.Thread(
target=post(event=3, imagePath='fall_detection' + str(time_snap).replace(':', '') + '.jpg'))
t.setDaemon(False)
t.start()
pre = datetime.datetime.now()