Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

A better way to calculate object area #7

Description

@jamiechoi1995

According to your paper, objects that smaller than 2% will be ignored.

_, _, w, h = object_data['bbox']

but this code only consider the width and height,
and this could not reflect the true area of an object,

For example, this is a "clothes" stuff, and most of the area is blank. (Original image: http://cocodataset.org/#explore?id=245764)
clothes

the area calculated by w and h is 10692,
but if you use codes like `np.sum(mask)', you get a more accurate area of 1115.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions