Skip to content

Convert the Public DGS Corpus OpenPose data from a single file to the standard one-frame-per-file format of OpenPose.

License

Notifications You must be signed in to change notification settings

DGS-Korpus/Public-Corpus-OpenPose-frame-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Latest release: DOI

This release: See release description.

Public Corpus OpenPose frame extractor

The Public DGS Corpus provides OpenPose data for all of its transcripts. Each transcript collects all of its pose information in a single file, using the DGS-Korpus OpenPose wrapper format. This script converts these files into the one-frame-per-file format used by the OpenPose demo.

For more information, see the project note OpenPose in the Public DGS Corpus. For the reverse procedure (many frame files to single wrapper file), see the DGS-Korpus OpenPose wrapper script.

Requirements

Python 3.7 or later. Earlier versions should generally work, but item order in mappings is not guaranteed.

Usage

wrap_openpose.py INPUT_FILE [INPUT_FILE ...]

Positional arguments:

  • INPUT_FILE: The DGS-Korpus OpenPose file(s) from which to extract the OpenPose frame files. To run on a batch of similarly named files, use * (e.g. dgskorpus/*.openpose.json)

Optional arguments:

  • -o OUTPUT_DIR: Directory to which to extract the frames. If missing, a directory is created based on the location and filename of the input file.
  • -v: Provide information on the extraction process.

About

Convert the Public DGS Corpus OpenPose data from a single file to the standard one-frame-per-file format of OpenPose.

Topics

Resources

License

Stars

Watchers

Forks

Languages