hannahbull / clean_op_data_sl

GNU General Public License v3.0
5 stars 0 forks source link

Clean OpenPose 2D keypoints for Sign Language Analysis

This code enables cleaning of OpenPose 2D keypoints for analysis of sign language videos.

The key cleaning operations are:

Input

Run OpenPose 2D with face, hands and body-25 keypoints for a video containing sign language. Save the *keypoints.json files in a folder. This is the argument openpose_folder.

Output

Frame numbers, person numbers and numpy array of the skeleton keypoints for each scene in the video. The numpy array is of dimension (T, 3, 127, max_number_signers), where T is the length of the scene in number of frames. The second axis corresponds to the X, Y and scores. The third axis is the number of keypoints of the head, hands and upper body. These are saved in output_folder.

Example

python clean_op_data.py --config 'config.yaml'

References

OpenPose: https://github.com/CMU-Perceptual-Computing-Lab/openpose

Automatic Segmentation of Sign Language Video into sentence-like units

See https://github.com/hannahbull/sign_language_segmentation