图像处理工具包
- 处理 COCO, VOC 格式的数据集
- 包含数据集互转、切分、检查
- 对coco格式数据进行评估(基于漏检率、错检率)
数据集格式说明
VOC
VOC
|
|---------Annotations
|-------xxx.xml
|---------ImageSets
|
|-------Main
|-------trainval.txt
|---------JPEGImages
|-------xxx.jpg
|---------labels.txt
# ImageSets 非必须
COCO
COCO
|
|---------Annotations
|-------train.json
|---------train
|-------xxx.jpg
使用方法
- pip 安装
pip install cspdataset
使用方法
- pip 安装
pip install cspdataset
- 命令行式使用
datatools COMMAND
- 参数说明
usage: datatools.py [-h] --form {coco,COCO,VOC,voc} --data_dir DATA_DIR
[--split]
[--division_ratio DIVISION_RATIO [DIVISION_RATIO ...]]
[--transform] [--output_transform OUTPUT_TRANSFORM]
[--check] [--output_check OUTPUT_CHECK]
[--labelfile LABELFILE] [--eva EVA]
tools for voc/coco dataset
optional arguments:
-h, --help show this help message and exit
--form {coco,COCO,VOC,voc} the form of the dataset
--data_dir DATA_DIR the dir of the dataset
--split Set a switch to split
--division_ratio DIVISION_RATIO [DIVISION_RATIO ...] data segmentation ratio
--transform Set a switch to transform
--output_transform OUTPUT_TRANSFORM dir for output
--check Set a switch to check
--output_check OUTPUT_CHECK dir for output
--labelfile LABELFILE the labels.txt from the platform
Metadata
Release files for cspdataset 0.4.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cspdataset-0.4.8.tar.gz | 5.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cspdataset-0.4.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.4 MB
Release files / cspdataset-0.4.8.tar.gz
| Download URL | cspdataset-0.4.8.tar.gz |
|---|---|
| Size | 5.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a10ae841c8212ed08e9353058a5b220b8976e570d1f9eb67bd0273309a6dc9d9
|
|
BLAKE2b-256 checksum How to use checksums |
732e0a4b7d50132922fa8849ee51aa479bb77e90c2623307f6c2499b11ec88be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11
|
Release files / cspdataset-0.4.8-py3-none-any.whl
| Download URL | cspdataset-0.4.8-py3-none-any.whl |
|---|---|
| Size | 63.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc285d738d4dfac11af4a401962b032460aa9da903ce1e8aba7380a83084c829
|
|
BLAKE2b-256 checksum How to use checksums |
d7621d489d5101a8216620e6d2e861406840e4071ad19d869c3a2c299d647e81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11
|