Skip to content

Kazuhito00/convert_coco_to_voc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

convert_coco_to_voc

COCO形式のJSONファイルをPascal VOC形式のXMLファイルへ変換するスクリプト

Requirement

  • tqdm 4.62.2 or later
  • xmltodict 0.12.0 or later

Usage

使用方法は以下です。

python convert_coco_to_voc.py json_filename xml_output_directory
  • --set_name
    xmlファイル一覧テキストを出力名
    デフォルト:train
  • --bbox_offset
    Pascal VOC形式のバウンディングボックスへ変換する際のオフセット
    デフォルト:1
  • --folder
    <folder>タグに書き込む内容
    デフォルト:VOCCOCO
  • --path
    <path>タグに書き込む内容
    デフォルト:指定なし
  • --owner
    <owner>タグに書き込む内容
    デフォルト:Unknown
  • --source_database
    <database>タグに書き込む内容
    デフォルト:Unknown
  • --source_annotation
    <annotation>タグに書き込む内容
    デフォルト:Unknown
  • --source_image
    <image>タグに書き込む内容
    デフォルト:Unknown
  • --image_depth
    <depth>タグに書き込む内容
    デフォルト:3
  • --segmented
    <segmented>タグに書き込む内容
    デフォルト:0

Author

高橋かずひと(https://twitter.com/KzhtTkhs)

License

convert_coco_to_voc is under Apache-2.0 License.

About

COCO形式のJSONファイルをPascal VOC形式のXMLファイルへ変換するスクリプト

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages