mishoiliev / FallDetection

Fall Detection using OpenPose for 2D image
8 stars 3 forks source link

KeyError #2

Open AngeloErre opened 2 years ago

AngeloErre commented 2 years ago

File "TestScript.py", line 39, in head_heights = heights['Head Height'] KeyError: 'Head Height'

May you help me?

mishoiliev commented 2 years ago

This json should be generated in FallDetection.py. Don't remember what was the case exactly, as that was long ago. Did you run it with the video in this repo or your own?

Either way, I would advise to try your own method as that was long ago. Just use my method as reference if you like - calculate the length of the pixel in metric value and from that calculate the fall speed, from where you set a threshold which if it exceeds, it means a fall is occurring.

AngeloErre commented 2 years ago

thank's a lot!

AngeloErre commented 2 years ago

I'm running with file in repo.