Skip to main content

Apply filters to a coco annotation file from a project configuration file.

Project description

fsai-coco-filter

fsai-coco-filter provides a way to apply filters to a coco annotation file from a project configuration file.

Installation

# Install fsai-coco-filter
pip install fsai-coco-filter

Add an fcf.json to your project

{
    "filter_annotations": [
        "Powerline Pylon, Type A, H, Y",
        "Powerline Pylon, Type I",
        "Light Support Structure"
    ],
    "reset_category_ids": true,
    "update_info": {
        "year": 2022,
        "version": "v1.0",
        "contributor": "Foundation Stack AI",
        "description": "Contact for more info.",
        "url": "https://fsai.dev"
    }
}

Run the coco-filter

fsai-coco-filter
--input_file_path /tmp/coco.json
--output_file_path /tmp/coco-filtered.json

coco-filter help

coco-filter

usage: coco-filter [-h] -i INPUT_FILE_PATH -o OUTPUT_FILE_PATH [-c CONFIG_FILE]
coco-filter: error: the following arguments are required: -i/--input_file_path, -o/--output_file_path

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

fsai-coco-filter-0.1.3.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

fsai_coco_filter-0.1.3-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

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