This release: See release description.
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.
Python 3.7 or later. Earlier versions should generally work, but item order in mappings is not guaranteed.
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.