Skip to content

ALDHALDH/Public-Corpus-OpenPose-frame-extractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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 2.7 or Python 3.

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%