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

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

Home Page:http://ling.meine-dgs.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

http://ling.meine-dgs.de/

License:MIT License


Languages

Language:Python 100.0%