Dataset Viewer
Auto-converted to Parquet Duplicate
width
int64
375
376
height
int64
665
6.71k
image
imagewidth (px)
375
376
objects
dict
375
667
{ "bbox": [ [ 0, 0, 375, 667 ], [ 0, 0, 375, 20 ], [ 0, 0, 375, 112 ], [ 0, 0, 375, 20 ], [ 8, 30, 349, 312 ], [ 212, 45, 88, 28 ...
375
1,806
{ "bbox": [ [ 0, 1723, 375, 83 ], [ 0, 0, 375, 464 ], [ 0, 0, 375, 464 ], [ 53, 424, 270, 40 ], [ 24, 91, 327, 301 ], [ 110.5, 312, 154,...
375
667
{ "bbox": [ [ 0, 252, 375, 413 ], [ 1, 252, 373, 373 ], [ 250, 501, 124, 124 ], [ 125.5, 501, 124, 124 ], [ 1, 501, 124, 124 ], [ 250, 376.5, ...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 0, 0, 375, 812 ], [ 84, 285, 30, 34 ], [ 281, 396, 30, 34 ], [ 135, 551, 30, 34 ], [ 24, 641, 48, ...
375
812
{ "bbox": [ [ 0, 1, 375, 812 ], [ 0, 1, 375, 812 ], [ 28, 143, 320, 224 ], [ 28, 143, 180, 20 ], [ 28, 143, 53, 20 ], [ 81, 143, 127, ...
375
812
{ "bbox": [ [ 0, 108, 345, 194 ], [ 0, 108, 345, 194 ], [ 0, 108, 345, 194 ], [ 40.62857142857138, 153, 71, 130 ], [ 40.62857142857138, 153, 70.85714285714275, 12...
375
812
{ "bbox": [ [ 30, 116, 315, 194 ], [ 29.999999999999716, 116, 314.0775, 193.745 ], [ 30, 116, 315, 194 ], [ 29.999999999999716, 116, 314.0775, 193.745 ], [ 291.9540000000001, ...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 0, 0, 375, 812 ], [ 0, 0, 375, 812 ], [ 0, 109, 375, 703 ], [ 0, 109, 375, 175 ], [ 0, 109, 375, ...
375
1,885
{ "bbox": [ [ 0, 10, 375, 846 ], [ 319, 44, 40, 40 ], [ 16, 242, 327, 196 ], [ 16, 242, 327, 56 ], [ 16, 306, 308, 60 ], [ 16, 398, 246,...
375
812
{ "bbox": [ [ 0, 12, 375, 65 ], [ 0, 12, 375, 65 ], [ 20, 22, 57, 41 ], [ 100, 27, 160, 32 ], [ 0, 97, 616, 247 ], [ 0, 97, 375, 2...
375
812
{ "bbox": [ [ 1, 0, 375, 44 ], [ 167, 763, 42, 5 ], [ 167, 763, 24, 5 ], [ 0, 778, 375, 34 ], [ 30, 57, 345, 516 ], [ 30, 128, 314, ...
375
667
{ "bbox": [ [ 0, 0, 375, 667 ], [ 0, 192, 375, 15 ], [ 0, 0, 375, 70 ], [ 23, 225, 352, 480 ], [ 23, 225, 352, 65 ], [ 23, 225, 331, ...
375
812
{ "bbox": [ [ 0, 498, 375, 406 ], [ 0, 498, 375, 406 ], [ 0, 498, 375, 406 ], [ 98, 684, 179, 35 ], [ 10, 742, 355, 60 ], [ 0, 92, 375, ...
375
812
{ "bbox": [ [ 0, 791, 375, 21 ], [ 0, 0, 375, 812 ], [ 48, 384, 279, 44 ], [ 48, 108, 279, 48 ], [ 16, 188, 130, 34 ], [ 16, 188, 130, ...
375
667
{ "bbox": [ [ 0, 0, 375, 256 ], [ 0, 0, 375, 220 ], [ 71.9870967741881, 149.6645161290321, 232.0258064516129, 106.0838709677419 ], [ 18, 27, 334, 24 ], [ 18, 27, 25, ...
375
667
{ "bbox": [ [ 0, 0, 375, 667 ], [ 0, 38, 264, 584 ], [ 86, 51, 148, 24 ], [ 22, 322, 223, 300 ], [ 22, 136, 122, 170 ], [ 264, 0, 375, ...
375
812
{ "bbox": [ [ 0, 163, 375, 649 ], [ 21, 50, 333, 50 ], [ 21, 50, 90, 21 ], [ 21, 79, 91, 21 ], [ 325, 66, 29, 21.3235294117647 ], [ 325, 66, ...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 20, 183, 153, 24 ], [ 20, 217, 335, 126 ], [ 20, 217, 335, 126 ], [ 99, 232, 158, 24 ], [ 99, 255, 113...
375
667
{ "bbox": [ [ 0, 0, 375, 890 ], [ 0, 1, 375, 867 ], [ 0, 0, 375, 667 ], [ 0, 0, 375, 667 ], [ 10, 362, 355, 296 ], [ 10, 601, 355, ...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 24, 60, 327, 116 ], [ 24, 331, 327, 150 ], [ 24, 331, 327, 150 ], [ 24, 331, 327, 58 ], [ 24, 421, 327...
375
812
{ "bbox": [ [ 0, 0, 375, 70 ], [ 28, 133, 320, 70 ], [ 28, 333, 320, 70 ], [ 28, 213, 320, 70 ], [ 28, 413, 320, 70 ], [ 28, 613, 320, ...
375
812
{ "bbox": [ [ 0, 300, 375, 512 ], [ 0, 0, 375, 300 ], [ 16, 250, 369, 572 ], [ 36, 385, 323, 401 ], [ 36, 333, 70, 22 ], [ 36, 335, 70, ...
375
697
{ "bbox": [ [ 0, 0, 375, 667 ], [ 0, 0, 375, 20 ], [ 0, 20, 375, 64 ], [ 0, 20, 375, 64 ], [ 20, 38, 26, 26 ], [ 20, 38, 26, 26 ...
375
667
{ "bbox": [ [ 27, 537, 320, 51 ], [ 27, 537, 320, 51 ], [ 142.5, 553, 89, 17 ], [ 94, 361, 187, 72 ], [ 153, 229, 70, 70 ], [ 0, 0, 375,...
375
812
{ "bbox": [ [ 0, 0, 376, 110 ], [ 0, 0, 376, 110 ], [ 136, 64, 104, 26 ], [ 136, 64, 104, 26 ], [ 16, 67, 12, 21 ], [ 0, 0, 375, 4...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 0, 0, 375, 812 ], [ 0, 0, 375, 812 ], [ 0, 0, 375, 180 ], [ 0, 0, 375, 180 ], [ 0, 0, 375, 180 ...
375
812
{ "bbox": [ [ 47.5, 578.5265674500188, 232.2459835551235, 44 ], [ 47.5, 483.7273598010579, 220, 68 ], [ 146, 745, 85, 14 ], [ 37, 674, 301, 48 ], [ 37.5, 674, 300, ...
375
812
{ "bbox": [ [ 20, 445, 335, 339 ], [ 20, 714, 335, 70 ], [ 297, 714, 58, 30 ], [ 297, 714, 58, 30 ], [ 323, 721, 21, 16 ], [ 307, 724, 1...
375
667
{ "bbox": [ [ 110, 80, 155, 250 ], [ 110, 80, 155, 250 ], [ 168, 137, 40, 40 ], [ 30, 525, 315, 46 ], [ 50, 536, 18, 18 ], [ 30, 525, 31...
375
812
{ "bbox": [ [ 0, 0, 375, 667 ], [ 0, 0, 375, 20 ], [ 0, 0, 375, 20 ], [ 26, 3.5, 17, 14 ], [ 346, 5, 25, 11 ], [ 346, 5, 22, 10.5 ...
375
667
{ "bbox": [ [ 30, 116, 316, 500 ], [ 84, 598, 161, 18 ], [ 253, 598, 39, 18 ], [ 30, 116, 315, 196 ], [ 30, 182, 315, 64 ], [ 30, 116, 3...
375
812
{ "bbox": [ [ 0, 778, 375, 34 ], [ 0, 0, 375, 44 ], [ 24, 150, 227, 46 ], [ 82, 151, 169, 44 ], [ 82, 151, 91, 22 ], [ 82, 173, 169, ...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 0, 0, 375, 812 ], [ 0, 0, 375, 812 ], [ 129, 704, 117, 18 ], [ 36, 631, 303, 54 ], [ 36, 631, 303, ...
375
812
{ "bbox": [ [ 0, 0, 375, 44 ], [ 24, 453, 327, 112 ], [ 24, 453, 327, 48 ], [ 24, 517, 327, 48 ], [ 121, 800, 134, 3 ], [ 74, 721, 227, ...
375
812
{ "bbox": [ [ 24, 699, 327, 56 ], [ 132, 716, 112, 22 ], [ 16, 598, 343, 76 ], [ 16, 598, 343, 76 ], [ 78, 624, 129, 22 ], [ 38, 624, 24...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 0, 0, 375, 123 ], [ 47, 97, 14, 12 ], [ 345, 5.5, 22.5, 9.5 ], [ 314, 3.105499999999999, 25, 14 ], [ 300, 4,...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 28, 57, 201, 36 ], [ 28, 57, 200.585046728972, 36 ], [ 28, 150, 327, 109 ], [ 120, 150, 191, 25 ], [ 120, 15...
375
812
{ "bbox": [ [ 21, 335, 130, 23 ], [ 55.6500000000002, 337.3625000000004, 95, 15 ], [ 21, 335, 20.25, 20.25 ], [ 22, 130, 69, 29 ], [ 22, 130, 69, 29 ], [ ...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 17, 175, 341, 580 ], [ 17, 175, 341, 580 ], [ 36, 542, 311, 122 ], [ 36, 542, 205, 30 ], [ 60, 574, 28...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 27, 50, 320, 85 ], [ 121, 50, 133, 24 ], [ 121, 50, 132.0407239819004, 24 ], [ 27, 51, 24, 24 ], [ 323, 51, ...
375
812
{ "bbox": [ [ 28, 138, 319, 223 ], [ 28, 326, 107, 35 ], [ 77, 334, 58, 19 ], [ 28, 326, 35, 35 ], [ 28, 138, 271, 73 ], [ 28, 138, 35, ...
375
667
{ "bbox": [ [ 0, 0, 375, 667 ], [ 0, 0, 375, 667 ], [ 0, 63, 375, 604 ], [ 0, 607, 375, 60 ], [ 0, 607, 375, 60 ], [ 124, 628, 128, ...
375
812
{ "bbox": [ [ 0, 734, 375, 78 ], [ 0, 734, 375, 78 ], [ 121, 799, 133, 4.5 ], [ 46.28873075246884, 757.2507729398915, 17.42253849506251, 20.12444448575175 ], [ 175.7829234026599, ...
375
1,514
{ "bbox": [ [ 19, 1439, 334, 58 ], [ 20, 1439, 333, 58 ], [ 19, 1458, 333, 17 ], [ 19, 161, 336, 668 ], [ 19, 161, 336, 1 ], [ 19, 275, ...
375
667
{ "bbox": [ [ 0, 0, 375, 67.96875 ], [ 0, 0, 375, 67.96875 ], [ 160.546875, 35.15625, 54, 18 ], [ 0, 0, 375, 20 ], [ 0, 0, 374.7752472280491, 19.98801318549596 ...
375
812
{ "bbox": [ [ 0, 0, 375, 812 ], [ 0, 0, 375, 812 ], [ 0, 778, 375, 34 ], [ 59, 531, 258, 258 ], [ 59, 531, 258, 258 ], [ 186, 672, 2, ...
End of preview. Expand in Data Studio

Dataset: Mobile UI Design Detection

Introduction

This dataset is designed for object detection tasks with a focus on detecting elements in mobile UI designs. The targeted objects include text, images, and groups. The dataset contains images and object detection boxes, including class labels and ___location information.

Dataset Content

Load the dataset and take a look at an example:

>>> from datasets import load_dataset
>>>> ds = load_dataset("mrtoy/mobile-ui-design")
>>> example = ds[0]
>>> example
{'width': 375,
 'height': 667,
 'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=375x667>,
 'objects': {'bbox': [[0.0, 0.0, 375.0, 667.0],
   [0.0, 0.0, 375.0, 667.0],
   [0.0, 0.0, 375.0, 20.0],
   ...
  ],
  'category': ['text',
   'rectangle',
   'rectangle',
   ...]}}

The dataset has the following fields:

  • image: PIL.Image.Image object containing the image.
  • height: The image height.
  • width: The image width.
  • objects: A dictionary containing bounding box metadata for the objects in the image:
    • bbox: The object’s bounding box (xmin,ymin,width,height).
    • category: The object’s category, with possible values including rectangle、text、group、image
    • color: The object’s color, text color or rectangle color, or None
    • radius: The object’s color, rectangle radius, or None
    • text: text content, or None

You can visualize the bboxes on the image using some internal torch utilities.

import torch
from torchvision.ops import box_convert
from torchvision.utils import draw_bounding_boxes
from torchvision.transforms.functional import pil_to_tensor, to_pil_image

item = ds[0]
boxes_xywh = torch.tensor(item['objects']['bbox'])
boxes_xyxy = box_convert(boxes_xywh, 'xywh', 'xyxy')
to_pil_image(
    draw_bounding_boxes(
        pil_to_tensor(item['image']),
        boxes_xyxy,
        labels=item['objects']['category'],
    )
)

image

image

image

Applications

This dataset can be used for various applications, such as:

  • Training and evaluating object detection models for mobile UI designs.
  • Identifying design patterns and trends to aid UI designers and developers in creating high-quality mobile app UIs.
  • Enhancing the automation process in generating UI design templates.
  • Improving image recognition and analysis in the field of mobile UI design.
Downloads last month
536

Models trained or fine-tuned on mrtoy/mobile-ui-design