Skip to main content

A Reporer Everyting for traninig CocoDataset

Project description

Introduction

Coco-toolkit is a tool for preparing and analyzing object detection data which is coco json format in Python. Tool countains merge, preprocessing, report and converter modules.

1 - Preprocessing This class obtain preprocess functions for preparing coco json dataset.

2 - Converter This module has converters functions which are Pascal voc to coco json and coco json to tfrecords.

3 - Merge Merge module has multiple coco merge function. It merges all given coco json file and return all in one output folder.

4- Report Report module has analyze dataset functions. These functions are; return information of data set, plots data set information as pie chart, and integrates data set with coco viewer.

System requirements

Installation

Basic usage

1 - Import

1.1 -Import preprocess

from coco_toolkit.helper.preprocess import PreProcess

1.2 -Import merge

from coco_toolkit.helper.merge import merge_multiple_cocos

1.2 -Import report

from coco_toolkit.helper.report import AnalyzeCategories

2 - Sample usage

2.1 - Usage filter class

This function filter given class names. It returns filtered coco json as dictionary and saves filtered coco json file and filtered images in new folder. PreProcess(path).export_according2_class(coco, categories, image_path)

parameter path : This parameter is directory of output.Function saves filtered dataset in this path.

parameter coco : Coco json file as read dictionary

parameter categories : List of to be filtered class names

parameter image_path: Dataset images folder path

coco = PreProcess(path to coco json file).reader() PreProcess(path).export_according2_class(coco, ["human", "car"], "/home/user/data/images")

Check before PR

black . --config pyproject.toml
isort .
pre-commit run --all-files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coco_toolkit-0.1.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

coco_toolkit-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file coco_toolkit-0.1.0.tar.gz.

File metadata

  • Download URL: coco_toolkit-0.1.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.13.0-52-generic

File hashes

Hashes for coco_toolkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f858358e5dee344b60e7c94f81f172074193a80b5f75d19f4d438ab9ef39378c
MD5 73b0d57b5873b2592b939e32255471e0
BLAKE2b-256 a8cdcb1db4ab013d60daeb7f3e85fec9995efdeff1b97b542cb4b0a291a81b3e

See more details on using hashes here.

File details

Details for the file coco_toolkit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: coco_toolkit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.13.0-52-generic

File hashes

Hashes for coco_toolkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff6d783a7fbe36fc2cc3422dc15cd2dd2ef1410574dc371ad05bcedecd4319a9
MD5 c3e3d2dac24dbc0febb75971f0742bfc
BLAKE2b-256 54db1d96b838325aaf707e43df7a174116d7f7342bcd0a3fdfc762e036421d71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page