Dataset Viewer
Auto-converted to Parquet Duplicate
color_category
string
cap_rotation
int64
cap_type
string
camera_angle
int64
cap_facing_position
int64
cap_id
string
cap_state
int64
image
image
black
12
standard cap
0
0
00463c4e-9d48-4009-9044-18b7be7c3dce
0
black
12
standard cap
0
1
00463c4e-9d48-4009-9044-18b7be7c3dce
0
black
12
standard cap
45
0
00463c4e-9d48-4009-9044-18b7be7c3dce
0
black
12
standard cap
45
1
00463c4e-9d48-4009-9044-18b7be7c3dce
0
black
12
standard cap
90
0
00463c4e-9d48-4009-9044-18b7be7c3dce
0
black
12
standard cap
90
1
00463c4e-9d48-4009-9044-18b7be7c3dce
0
yellow/gold
12
standard cap
0
0
0090f9de-871e-4bcc-af1a-781237b48297
0
yellow/gold
12
standard cap
0
1
0090f9de-871e-4bcc-af1a-781237b48297
0
yellow/gold
12
standard cap
45
0
0090f9de-871e-4bcc-af1a-781237b48297
0
yellow/gold
12
standard cap
45
1
0090f9de-871e-4bcc-af1a-781237b48297
0
yellow/gold
12
standard cap
90
0
0090f9de-871e-4bcc-af1a-781237b48297
0
yellow/gold
12
standard cap
90
1
0090f9de-871e-4bcc-af1a-781237b48297
0
blue
12
standard cap
0
0
01216760-3148-4135-976e-926097ce5ab5
0
blue
12
standard cap
0
1
01216760-3148-4135-976e-926097ce5ab5
0
blue
12
standard cap
45
0
01216760-3148-4135-976e-926097ce5ab5
0
blue
12
standard cap
45
1
01216760-3148-4135-976e-926097ce5ab5
0
blue
12
standard cap
90
0
01216760-3148-4135-976e-926097ce5ab5
0
blue
12
standard cap
90
1
01216760-3148-4135-976e-926097ce5ab5
0
white/transparent
12
standard cap
0
0
0141dab2-915d-4892-a867-659f8f0db3ab
0
white/transparent
12
standard cap
0
1
0141dab2-915d-4892-a867-659f8f0db3ab
0
white/transparent
12
standard cap
45
0
0141dab2-915d-4892-a867-659f8f0db3ab
0
white/transparent
12
standard cap
45
1
0141dab2-915d-4892-a867-659f8f0db3ab
0
white/transparent
12
standard cap
90
0
0141dab2-915d-4892-a867-659f8f0db3ab
0
white/transparent
12
standard cap
90
1
0141dab2-915d-4892-a867-659f8f0db3ab
0
white/transparent
12
standard cap
0
0
01cf3bf9-ebab-4177-9da5-14dd39717e9f
0
white/transparent
12
standard cap
0
1
01cf3bf9-ebab-4177-9da5-14dd39717e9f
0
white/transparent
12
standard cap
45
0
01cf3bf9-ebab-4177-9da5-14dd39717e9f
0
white/transparent
12
standard cap
45
1
01cf3bf9-ebab-4177-9da5-14dd39717e9f
0
white/transparent
12
standard cap
90
0
01cf3bf9-ebab-4177-9da5-14dd39717e9f
0
white/transparent
12
standard cap
90
1
01cf3bf9-ebab-4177-9da5-14dd39717e9f
0
yellow/gold
12
standard cap
0
0
0484f9e0-905c-46d0-a453-e16ebb0b1082
0
yellow/gold
12
standard cap
0
1
0484f9e0-905c-46d0-a453-e16ebb0b1082
0
yellow/gold
12
standard cap
45
0
0484f9e0-905c-46d0-a453-e16ebb0b1082
0
yellow/gold
12
standard cap
45
1
0484f9e0-905c-46d0-a453-e16ebb0b1082
0
yellow/gold
12
standard cap
90
0
0484f9e0-905c-46d0-a453-e16ebb0b1082
0
yellow/gold
12
standard cap
90
1
0484f9e0-905c-46d0-a453-e16ebb0b1082
0
green
12
standard cap
0
0
04b62e3e-1c54-44c3-89de-a26bc133cf31
0
green
12
standard cap
0
1
04b62e3e-1c54-44c3-89de-a26bc133cf31
0
green
12
standard cap
45
0
04b62e3e-1c54-44c3-89de-a26bc133cf31
0
green
12
standard cap
45
1
04b62e3e-1c54-44c3-89de-a26bc133cf31
0
green
12
standard cap
90
0
04b62e3e-1c54-44c3-89de-a26bc133cf31
0
green
12
standard cap
90
1
04b62e3e-1c54-44c3-89de-a26bc133cf31
0
red/orange/pink/fuchsia/brown
12
flip-top cap
0
0
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
12
flip-top cap
0
0
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
12
flip-top cap
0
1
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
12
flip-top cap
0
1
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
3
flip-top cap
0
0
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
3
flip-top cap
0
0
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
3
flip-top cap
0
1
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
3
flip-top cap
0
1
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
6
flip-top cap
0
0
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
6
flip-top cap
0
0
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
6
flip-top cap
0
1
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
6
flip-top cap
0
1
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
12
flip-top cap
45
0
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
12
flip-top cap
45
0
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
12
flip-top cap
45
1
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
12
flip-top cap
45
1
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
3
flip-top cap
45
0
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
3
flip-top cap
45
0
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
3
flip-top cap
45
1
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
3
flip-top cap
45
1
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
6
flip-top cap
45
0
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
6
flip-top cap
45
0
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
6
flip-top cap
45
1
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
6
flip-top cap
45
1
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
12
flip-top cap
90
0
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
12
flip-top cap
90
0
084ace04-1771-477b-88b8-4f142817d620
1
red/orange/pink/fuchsia/brown
12
flip-top cap
90
1
084ace04-1771-477b-88b8-4f142817d620
0
red/orange/pink/fuchsia/brown
12
flip-top cap
90
1
084ace04-1771-477b-88b8-4f142817d620
1
white/transparent
12
standard cap
0
0
09a8ec22-a70a-403d-b923-f4e614e7d918
0
white/transparent
12
standard cap
0
1
09a8ec22-a70a-403d-b923-f4e614e7d918
0
white/transparent
12
standard cap
45
0
09a8ec22-a70a-403d-b923-f4e614e7d918
0
white/transparent
12
standard cap
45
1
09a8ec22-a70a-403d-b923-f4e614e7d918
0
white/transparent
12
standard cap
90
0
09a8ec22-a70a-403d-b923-f4e614e7d918
0
white/transparent
12
standard cap
90
1
09a8ec22-a70a-403d-b923-f4e614e7d918
0
yellow/gold
12
standard cap
0
0
0b37f011-bced-4e7e-b772-a395b2a361f6
0
yellow/gold
12
standard cap
0
1
0b37f011-bced-4e7e-b772-a395b2a361f6
0
yellow/gold
12
standard cap
45
0
0b37f011-bced-4e7e-b772-a395b2a361f6
0
yellow/gold
12
standard cap
45
1
0b37f011-bced-4e7e-b772-a395b2a361f6
0
yellow/gold
12
standard cap
90
0
0b37f011-bced-4e7e-b772-a395b2a361f6
0
yellow/gold
12
standard cap
90
1
0b37f011-bced-4e7e-b772-a395b2a361f6
0
blue
12
standard cap
0
0
104d54b3-130c-4cbe-9a92-3336c396890f
0
blue
12
standard cap
0
1
104d54b3-130c-4cbe-9a92-3336c396890f
0
blue
12
standard cap
45
0
104d54b3-130c-4cbe-9a92-3336c396890f
0
blue
12
standard cap
45
1
104d54b3-130c-4cbe-9a92-3336c396890f
0
blue
12
standard cap
90
0
104d54b3-130c-4cbe-9a92-3336c396890f
0
blue
12
standard cap
90
1
104d54b3-130c-4cbe-9a92-3336c396890f
0
black
12
dual flip-top cap
0
0
10d76f81-8857-4d94-9939-4f3c10658e29
0
black
12
dual flip-top cap
0
0
10d76f81-8857-4d94-9939-4f3c10658e29
11
black
12
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
0
black
12
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
1
black
12
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
10
black
12
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
11
black
3
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
0
black
3
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
1
black
3
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
10
black
3
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
11
black
6
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
1
black
6
dual flip-top cap
0
1
10d76f81-8857-4d94-9939-4f3c10658e29
10
End of preview. Expand in Data Studio

Plastic Caps Dataset

Dataset Summary

This dataset contains images of plastic caps categorized by the color. The dataset is divided into training, validation, and test splits using a leakage-safe strategy that groups all images of the same physical cap together in the same split while maintaining balanced color distributions across subsets.

Supported Tasks

  • The initial and primary purpose of this dataset is Color classification (target label: color_category)

Dataset Structure

Data Fields

  • image: Image object containing the image data and associated metadata (loaded by the Hugging Face datasets library).
  • cap_id: A string (UUID) as the unique identifier for each physical cap.
  • cap_type: Categorical label indicating the physical design of the plastic cap: disc/press top cap, dual flip-top cap, flip-top cap, hinged cap, push-pull/sports cap, standard cap, tethered yorker cap, twist cap and yorker spout cap.
  • cap_rotation: An integer indicating the rotation of the cap, 12, 3, 6 meaning the cap is rotated to the 12 o'clock, 3 o'clock and 6 o'clock positions, respectively.
  • cap_state: A string, for normal caps: "0", "1" indicating if the cap is closed or open. In the case of dual-flip caps "00", "01", "10", "11" indicating the state of each lid (both closed, lid a open, lid b open, both open).
  • cap_facing_position: An integer, either 0 or 1, indicating if the cap is facing downwards or upwards, respectively.
  • camera_angle: An integer, indicating the angle of the camera when the image was taken (90, 45 or 0 degrees).
  • color_category: Categorical label representing grouped color classes used in recycling workflows, following Tapitas Oportunidades – Colores (one of red/orange/pink/fuchsia/brown, yellow/gold, blue, green, white/transparent, silver/gray and black).

Data Instances

Images

  • Total images: 2662

Color distribution (images):

  • black: 263
  • blue: 278
  • green: 412
  • red / orange / pink / fuchsia / brown: 583
  • silver / gray: 94
  • white / transparent: 836
  • yellow / gold: 196

Caps (Unique Physical Objects)

  • Total unique caps: 239

Color distribution (caps):

  • black: 25
  • blue: 28
  • green: 33
  • red / orange / pink / fuchsia / brown: 46
  • silver / gray: 12
  • white / transparent: 77
  • yellow / gold: 18

Data Splits

The dataset is split into training, validation, and test subsets using a deterministic and stratified splitting strategy designed to prevent data leakage and preserve distributional balance.

  • Grouping key: All samples are grouped by cap_id, ensuring that images of the same physical object do not appear across different splits.
  • Stratification: The split is stratified by color_category to maintain consistent distributions across subsets.
  • Split ratios:
    • Train: 80%
    • Validation: 10%
    • Test: 10%

Images / Color distribution (%)

Dataset Split Number of Images Black Blue Green Red / orange / pink / fuchsia / brown Silver / gray White / transparent Yellow / gold
Train 2,110 11.0% 10.4% 14.4% 24.0% 2.8% 30.1% 7.1%
Validation 254 4.7% 7.1% 18.1% 18.1% 2.4% 44.9% 4.7%
Test 298 6.0% 13.4% 20.8% 10.1% 9.4% 28.9% 11.4%

Caps / Color distribution (%)

Dataset Split Number of Caps Black Blue Green Red / orange / pink / fuchsia / brown Silver / gray White / transparent Yellow / gold
Train 191 10.5% 11.5% 13.6% 19.4% 5.2% 32.5% 7.3%
Validation 24 8.3% 12.5% 16.7% 16.7% 4.2% 33.3% 8.3%
Test 24 12.5% 12.5% 12.5% 20.8% 4.2% 29.2% 8.3%

Dataset Creation

This dataset contains images of plastic caps collected in-house by the author. Each cap is labeled with a color category, following Tapitas Oportunidades – Colores, and a cap type, defined as metadata. All images are provided at their original resolution of 224×224 pixels in RGB format.

The cap type determines the image capture strategy, including the number of images per cap, camera angles, rotational variations, facing position, and cap state (open or closed). This ensures that each cap is represented through multiple views appropriate to its physical design, providing diverse visual data for downstream tasks.

These plastic caps are used in non-profit initiatives to produce accessible products, such as retractable walkways and amphibious chairs, as described on the Donatapa website. The labels reflect both practical usage categories and the intended applications of the caps.

Curation Rationale

The plastic caps dataset was designed to support research in computer vision, specifically for classification and analysis of colors and cap types in applications related to social impact and sustainability.

Source Data

The data was obtained by capturing multi-view images of plastic caps using a fixed camera setup in a controlled environment. No third-party datasets were used.

Annotations

The dataset does not contain any additional annotations.

Personal and Sensitive Information

The dataset does not contain any personal or sensitive information.

Versioning

We use Semantic Versioning (SemVer) for versioning our dataset, meaning we follow the MAJOR.MINOR.PATCH version pattern and the following versioning policy:

MAJOR version

Incremented when changes break backward compatibility including:

  • Schema changes (renaming or removing fields)
  • Data type changes.
  • Changes in the semantic meaning of existing fields
  • Modifications to label definitions or class taxonomies
  • Restructuring of dataset splits (train/validation/test)
  • Any change that invalidates direct comparison with previous results

MINOR version

Incremented for backward-compatible extensions such as:

  • Addition of new columns or metadata fields
  • Addition of new classes without modifying existing ones
  • Inclusion of additional samples or images
  • Addition of new dataset splits
  • Improvements to documentation or dataset metadata

PATCH version

Incremented for non-semantic corrections like:

  • Fixes to metadata errors
  • Small-scale correction of mislabeled samples
  • Replacement of corrupted files
  • Corrections to dataset card

For the versions available, see the tags in the dataset repository.

License

This dataset is released under Creative Commons Attribution 4.0 International (CC-BY-4.0) license.

Citation

If you use this dataset in your research, please cite:

@dataset{garcia2026plasticcaps,
    title = {Plastic Caps Dataset},
    author = {García, Sebastián},
    year = {2026},
    publisher = {Hugging Face},
    url = {https://huggingface.co/datasets/sebastiangv/plastic-caps}
}
Downloads last month
56