[e8481a]: / demo-fall-detection.py

Download this file

17 lines (13 with data), 513 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from PIL import Image
from fall_prediction import Fall_prediction
img1 = Image.open("Images/fall_img_1.png")
img2 = Image.open("Images/fall_img_2.png")
img3 = Image.open("Images/fall_img_3.png")
response = Fall_prediction(img1, img2, img3)
if response:
print("There is", response['category'])
print("Confidence :", response['confidence'])
print("Angle : ", response['angle'])
print("Keypoint_corr :", response['keypoint_corr'])
else:
print("There is no fall detetcion...")