Dataset Viewer
Auto-converted to Parquet Duplicate
cap_facing_position
int64
color_category
string
camera_angle
int64
cap_rotation
int64
cap_id
string
cap_type
string
cap_state
int64
image
image
0
black
0
12
00463c4e-9d48-4009-9044-18b7be7c3dce
standard cap
0
1
black
0
12
00463c4e-9d48-4009-9044-18b7be7c3dce
standard cap
0
0
black
45
12
00463c4e-9d48-4009-9044-18b7be7c3dce
standard cap
0
1
black
45
12
00463c4e-9d48-4009-9044-18b7be7c3dce
standard cap
0
0
black
90
12
00463c4e-9d48-4009-9044-18b7be7c3dce
standard cap
0
1
black
90
12
00463c4e-9d48-4009-9044-18b7be7c3dce
standard cap
0
0
yellow/gold
0
12
0090f9de-871e-4bcc-af1a-781237b48297
standard cap
0
1
yellow/gold
0
12
0090f9de-871e-4bcc-af1a-781237b48297
standard cap
0
0
yellow/gold
45
12
0090f9de-871e-4bcc-af1a-781237b48297
standard cap
0
1
yellow/gold
45
12
0090f9de-871e-4bcc-af1a-781237b48297
standard cap
0
0
yellow/gold
90
12
0090f9de-871e-4bcc-af1a-781237b48297
standard cap
0
1
yellow/gold
90
12
0090f9de-871e-4bcc-af1a-781237b48297
standard cap
0
0
blue
0
12
01216760-3148-4135-976e-926097ce5ab5
standard cap
0
1
blue
0
12
01216760-3148-4135-976e-926097ce5ab5
standard cap
0
0
blue
45
12
01216760-3148-4135-976e-926097ce5ab5
standard cap
0
1
blue
45
12
01216760-3148-4135-976e-926097ce5ab5
standard cap
0
0
blue
90
12
01216760-3148-4135-976e-926097ce5ab5
standard cap
0
1
blue
90
12
01216760-3148-4135-976e-926097ce5ab5
standard cap
0
0
white/transparent
0
12
0141dab2-915d-4892-a867-659f8f0db3ab
standard cap
0
1
white/transparent
0
12
0141dab2-915d-4892-a867-659f8f0db3ab
standard cap
0
0
white/transparent
45
12
0141dab2-915d-4892-a867-659f8f0db3ab
standard cap
0
1
white/transparent
45
12
0141dab2-915d-4892-a867-659f8f0db3ab
standard cap
0
0
white/transparent
90
12
0141dab2-915d-4892-a867-659f8f0db3ab
standard cap
0
1
white/transparent
90
12
0141dab2-915d-4892-a867-659f8f0db3ab
standard cap
0
0
white/transparent
0
12
01cf3bf9-ebab-4177-9da5-14dd39717e9f
standard cap
0
1
white/transparent
0
12
01cf3bf9-ebab-4177-9da5-14dd39717e9f
standard cap
0
0
white/transparent
45
12
01cf3bf9-ebab-4177-9da5-14dd39717e9f
standard cap
0
1
white/transparent
45
12
01cf3bf9-ebab-4177-9da5-14dd39717e9f
standard cap
0
0
white/transparent
90
12
01cf3bf9-ebab-4177-9da5-14dd39717e9f
standard cap
0
1
white/transparent
90
12
01cf3bf9-ebab-4177-9da5-14dd39717e9f
standard cap
0
0
yellow/gold
0
12
0484f9e0-905c-46d0-a453-e16ebb0b1082
standard cap
0
1
yellow/gold
0
12
0484f9e0-905c-46d0-a453-e16ebb0b1082
standard cap
0
0
yellow/gold
45
12
0484f9e0-905c-46d0-a453-e16ebb0b1082
standard cap
0
1
yellow/gold
45
12
0484f9e0-905c-46d0-a453-e16ebb0b1082
standard cap
0
0
yellow/gold
90
12
0484f9e0-905c-46d0-a453-e16ebb0b1082
standard cap
0
1
yellow/gold
90
12
0484f9e0-905c-46d0-a453-e16ebb0b1082
standard cap
0
0
green
0
12
04b62e3e-1c54-44c3-89de-a26bc133cf31
standard cap
0
1
green
0
12
04b62e3e-1c54-44c3-89de-a26bc133cf31
standard cap
0
0
green
45
12
04b62e3e-1c54-44c3-89de-a26bc133cf31
standard cap
0
1
green
45
12
04b62e3e-1c54-44c3-89de-a26bc133cf31
standard cap
0
0
green
90
12
04b62e3e-1c54-44c3-89de-a26bc133cf31
standard cap
0
1
green
90
12
04b62e3e-1c54-44c3-89de-a26bc133cf31
standard cap
0
0
red/orange/pink/fuchsia/brown
0
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
0
red/orange/pink/fuchsia/brown
0
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
1
red/orange/pink/fuchsia/brown
0
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
1
red/orange/pink/fuchsia/brown
0
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
0
red/orange/pink/fuchsia/brown
0
3
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
0
red/orange/pink/fuchsia/brown
0
3
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
1
red/orange/pink/fuchsia/brown
0
3
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
1
red/orange/pink/fuchsia/brown
0
3
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
0
red/orange/pink/fuchsia/brown
0
6
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
0
red/orange/pink/fuchsia/brown
0
6
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
1
red/orange/pink/fuchsia/brown
0
6
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
1
red/orange/pink/fuchsia/brown
0
6
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
0
red/orange/pink/fuchsia/brown
45
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
0
red/orange/pink/fuchsia/brown
45
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
1
red/orange/pink/fuchsia/brown
45
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
1
red/orange/pink/fuchsia/brown
45
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
0
red/orange/pink/fuchsia/brown
45
3
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
0
red/orange/pink/fuchsia/brown
45
3
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
1
red/orange/pink/fuchsia/brown
45
3
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
1
red/orange/pink/fuchsia/brown
45
3
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
0
red/orange/pink/fuchsia/brown
45
6
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
0
red/orange/pink/fuchsia/brown
45
6
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
1
red/orange/pink/fuchsia/brown
45
6
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
1
red/orange/pink/fuchsia/brown
45
6
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
0
red/orange/pink/fuchsia/brown
90
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
0
red/orange/pink/fuchsia/brown
90
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
1
red/orange/pink/fuchsia/brown
90
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
0
1
red/orange/pink/fuchsia/brown
90
12
0594492b-522c-4610-863c-756b2e81f946
flip-top cap
1
0
red/orange/pink/fuchsia/brown
0
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
0
red/orange/pink/fuchsia/brown
0
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
1
red/orange/pink/fuchsia/brown
0
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
1
red/orange/pink/fuchsia/brown
0
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
0
red/orange/pink/fuchsia/brown
0
3
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
0
red/orange/pink/fuchsia/brown
0
3
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
1
red/orange/pink/fuchsia/brown
0
3
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
1
red/orange/pink/fuchsia/brown
0
3
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
0
red/orange/pink/fuchsia/brown
0
6
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
0
red/orange/pink/fuchsia/brown
0
6
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
1
red/orange/pink/fuchsia/brown
0
6
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
1
red/orange/pink/fuchsia/brown
0
6
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
0
red/orange/pink/fuchsia/brown
45
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
0
red/orange/pink/fuchsia/brown
45
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
1
red/orange/pink/fuchsia/brown
45
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
1
red/orange/pink/fuchsia/brown
45
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
0
red/orange/pink/fuchsia/brown
45
3
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
0
red/orange/pink/fuchsia/brown
45
3
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
1
red/orange/pink/fuchsia/brown
45
3
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
1
red/orange/pink/fuchsia/brown
45
3
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
0
red/orange/pink/fuchsia/brown
45
6
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
0
red/orange/pink/fuchsia/brown
45
6
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
1
red/orange/pink/fuchsia/brown
45
6
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
1
red/orange/pink/fuchsia/brown
45
6
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
0
red/orange/pink/fuchsia/brown
90
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
0
red/orange/pink/fuchsia/brown
90
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
1
red/orange/pink/fuchsia/brown
90
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
0
1
red/orange/pink/fuchsia/brown
90
12
084ace04-1771-477b-88b8-4f142817d620
flip-top cap
1
0
white/transparent
0
12
09a8ec22-a70a-403d-b923-f4e614e7d918
standard cap
0
1
white/transparent
0
12
09a8ec22-a70a-403d-b923-f4e614e7d918
standard cap
0
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: 2668

Color distribution (images):

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

Caps (Unique Physical Objects)

  • Total unique caps: 240

Color distribution (caps):

  • black: 25
  • blue: 28
  • green: 33
  • red / orange / pink / fuchsia / brown: 47
  • 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,116 11.0% 10.4% 14.4% 24.2% 2.8% 30.1% 7.1%
Validation 254 4.7% 15.7% 26.8% 9.4% 2.4% 36.2% 4.7%
Test 298 6.0% 6.0% 13.4% 17.4% 9.4% 36.2% 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 192 10.4% 11.5% 13.5% 19.8% 5.2% 32.3% 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
98