Datasets:
image imagewidth (px) 640 640 |
|---|
Mineral Flotation Froth Bubble Segmentation
This release contains 16 flotation froth images from a random sample of the 300-image source collection. Each image is 640 x 480 pixels. The manually reviewed masks identify 3,188 individual bubbles in a single COCO category, bubble (ID 1). The images are distributed as one sample, without training, validation or test assignments.
Access to the full dataset
Only the corrected 16-image subset is distributed here. The complete set of corrected instance annotations for all 300 public-source images is available on request from the corresponding author, Yi-Jing Zhang. The upstream image release linked below does not include these corrections.
Files
Run inference in the browser or download the model weights and inference code.
| Path | Contents | Use |
|---|---|---|
| images/ | 16 original JPEG images | Input images |
| annotations/instances.json | One COCO JSON file covering all 16 images; each bubble has its own compressed run-length encoded (RLE) mask, area in pixels, and bounding box in [x, y, width, height] format |
Counting bubbles, training instance segmentation models, or evaluating mask AP |
| masks_binary/ | 16 grayscale PNGs: black (0) is background; white (255) is the union of all annotated bubbles | Semantic segmentation or measuring the fraction of the image covered by bubbles |
| masks_colored/ | 16 RGB PNGs: black is background; colors distinguish visible bubble instances within each image | Visual inspection |
Each PNG has the same base filename and dimensions as its source JPEG. The COCO images[].file_name field refers to that JPEG in images/.
Use the COCO annotations when individual bubbles matter. Two bubbles can share pixels in the annotations, but a colored PNG can display only one color at each pixel. A fully covered bubble may therefore have no visible color of its own. The colors are for display, not class labels or COCO annotation IDs.
Read a bubble mask
Run this example from the dataset root with pycocotools installed. It decodes one bubble, including any pixels it shares with other bubbles.
from pycocotools.coco import COCO
coco = COCO("annotations/instances.json")
image_id = min(coco.getImgIds())
bubbles = coco.loadAnns(coco.getAnnIds(imgIds=[image_id], catIds=[1]))
mask = coco.annToMask(bubbles[0]) # (height, width); 1 = bubble, 0 = background
Source and attribution
The images are from Froth's Bubbles dataset (Froth-Data1-V1) and are licensed under CC BY 4.0. The annotations in this subset reflect subsequent manual review and are not the unmodified labels from the original release.
- Downloads last month
- 6