Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.57 KB

File metadata and controls

29 lines (20 loc) · 1.57 KB

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.