Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kazuhito00/convert_coco_to_voc
COCO形式のJSONファイルをPascal VOC形式のXMLファイルへ変換するスクリプト
https://github.com/kazuhito00/convert_coco_to_voc
coco convert json pascal-voc xml
Last synced: 3 months ago
JSON representation
COCO形式のJSONファイルをPascal VOC形式のXMLファイルへ変換するスクリプト
- Host: GitHub
- URL: https://github.com/kazuhito00/convert_coco_to_voc
- Owner: Kazuhito00
- License: apache-2.0
- Created: 2022-02-09T14:42:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-26T06:46:18.000Z (about 1 year ago)
- Last Synced: 2024-01-26T07:36:38.954Z (about 1 year ago)
- Topics: coco, convert, json, pascal-voc, xml
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# convert_coco_to_voc
COCO形式のJSONファイルをPascal VOC形式のXMLファイルへ変換するスクリプト# Requirement
* tqdm 4.62.2 or later
* xmltodict 0.12.0 or later# Usage
使用方法は以下です。
```bash
python convert_coco_to_voc.py json_filename xml_output_directory
```
* --set_name
xmlファイル一覧テキストを出力名
デフォルト:train
* --bbox_offset
Pascal VOC形式のバウンディングボックスへ変換する際のオフセット
デフォルト:1
* --folder
\タグに書き込む内容
デフォルト:VOCCOCO
* --path
\タグに書き込む内容
デフォルト:指定なし
* --owner
\タグに書き込む内容
デフォルト:Unknown
* --source_database
\タグに書き込む内容
デフォルト:Unknown
* --source_annotation
\タグに書き込む内容
デフォルト:Unknown
* --source_image
\タグに書き込む内容
デフォルト:Unknown
* --image_depth
\タグに書き込む内容
デフォルト:3
* --segmented
\タグに書き込む内容
デフォルト:0# Author
高橋かずひと(https://twitter.com/KzhtTkhs)
# License
convert_coco_to_voc is under [Apache-2.0 License](LICENSE).