JVal123 commited on
Commit
b930ffa
·
verified ·
1 Parent(s): fef6786

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +133 -0
README.md ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DMDBench
2
+
3
+ DMDBench is a benchmark of 1,000 real-world images of digital measurement devices (DMDs). It is designed to evaluate visual question answering (VQA) and optical character recognition (OCR) under practical capture conditions, including variations in scale, viewpoint, illumination, background clutter, reflections, and motion blur.
4
+
5
+ The benchmark accompanies **CAD2DMD-SET: Synthetic Dataset Generator of Digital Measurement Devices**.
6
+
7
+ ## Device categories
8
+
9
+ DMDBench contains images from six device categories:
10
+
11
+ | Device category | Number of images |
12
+ |---|---:|
13
+ | Metronome | 180 |
14
+ | Power supply | 204 |
15
+ | Multimeter | 151 |
16
+ | Thermometer | 177 |
17
+ | Blood pressure monitor | 150 |
18
+ | Pulse oximeter | 138 |
19
+ | **Total** | **1,000** |
20
+
21
+ ## Repository contents
22
+
23
+ The repository contains:
24
+
25
+ - the 1,000 DMDBench images;
26
+ - VQA question–answer annotations generated using CAD2DMD-SET;
27
+ - OCR annotations containing quadrilateral text regions and their transcriptions; and
28
+ - this README describing the annotation and label-generation procedures.
29
+
30
+ The VQA dataset table contains the following fields:
31
+
32
+ | Field | Description |
33
+ |---|---|
34
+ | `index` | Image identifier from 1 to 1,000 |
35
+ | `image` | Image data |
36
+ | `question` | Question generated from the structured ground-truth information |
37
+ | `answer` | Ground-truth answer generated from the structured ground-truth information |
38
+
39
+ ## Annotation protocol
40
+
41
+ All 1,000 images were annotated by one author. For each image, the author recorded the structured ground-truth information required to describe the device display. Depending on the device and its operating configuration, this information included:
42
+
43
+ - the device type;
44
+ - the operating mode or measurement type;
45
+ - the displayed numerical value or values; and
46
+ - the corresponding measurement unit or units.
47
+
48
+ Numerical readings were transcribed exactly as represented by the device. The following elements were preserved:
49
+
50
+ - negative signs;
51
+ - leading zeros;
52
+ - decimal separators; and
53
+ - the displayed number of decimal places.
54
+
55
+ When a display contained multiple relevant elements, each measurement, unit, or operating-mode indicator was recorded separately.
56
+
57
+ For images captured under visually challenging conditions, such as motion blur, reflections, or difficult illumination, the transcription was verified against the known device reading recorded during image acquisition. This reference-based check was used to confirm the ground-truth annotation.
58
+
59
+ Because the annotations were prepared by one author, annotation quality was assessed through reference-based verification rather than an inter-annotator agreement statistic.
60
+
61
+ ## VQA annotation generation
62
+
63
+ The VQA question–answer annotations were generated automatically using the label-generation functionality of CAD2DMD-SET.
64
+
65
+ The manually recorded structured ground-truth information for each image was provided to CAD2DMD-SET, which generated the corresponding questions and answers following the same procedure used to create VQA labels for the synthetic CAD2DMD-SET training data.
66
+
67
+ Accordingly, the semantic ground truth was derived from the manually recorded device information, while the construction and formatting of the VQA question–answer pairs were automated. This workflow ensured consistent question and answer structures throughout the benchmark.
68
+
69
+ Questions may address one or more aspects of the visible device, including:
70
+
71
+ - device identity;
72
+ - operating mode or measurement type;
73
+ - displayed numerical readings; and
74
+ - measurement units.
75
+
76
+ ## OCR annotations
77
+
78
+ The OCR annotations are distributed in `gt_detections`. The archive contains one text file for each image:
79
+
80
+ ```text
81
+ gt_detections/
82
+ ├── img1.txt
83
+ ├── img2.txt
84
+ ├── ...
85
+ └── img1000.txt
86
+ ```
87
+
88
+ Each `imgN.txt` file corresponds to the image with index `N`. Across the 1,000 images, the files contain 2,754 annotated text regions.
89
+
90
+ Each line represents one OCR annotation and follows this comma-separated format:
91
+
92
+ ```text
93
+ x1,y1,x2,y2,x3,y3,x4,y4,transcription
94
+ ```
95
+
96
+ The first eight values are the image-pixel coordinates of the four vertices defining the quadrilateral text region. The final field is the ground-truth transcription associated with that region.
97
+
98
+ Example:
99
+
100
+ ```text
101
+ 564,743,674,730,674,806,570,818,54
102
+ 449,751,452,777,519,771,518,744,TEMPO
103
+ ```
104
+
105
+ In this example, the image contains two annotated regions: the displayed value `54` and the operating-mode label `TEMPO`.
106
+
107
+ The OCR annotations include visible:
108
+
109
+ - numerical measurements;
110
+ - measurement units; and
111
+ - operating-mode or configuration indicators.
112
+
113
+ This unified format provides both the spatial information required for text detection and the corresponding transcription required for text recognition.
114
+
115
+ ## Coordinate convention
116
+
117
+ Coordinates are expressed in pixels relative to the original image dimensions. The four coordinate pairs are stored in the order produced by the annotation export and should be treated as the vertices of a quadrilateral rather than as an axis-aligned bounding box.
118
+
119
+ ## Intended use
120
+
121
+ DMDBench is intended for research on:
122
+
123
+ - VQA for digital measurement devices;
124
+ - scene-text detection and recognition;
125
+ - OCR and multimodal-model benchmarking;
126
+ - robustness evaluation under realistic image degradation; and
127
+ - numerical and unit extraction from digital displays.
128
+
129
+ ## Data considerations
130
+
131
+ The images contain digital measurement devices collected for this study. No personally identifying information is included.
132
+
133
+ For medical, electrical, industrial, or other safety-sensitive applications, model predictions should be confirmed through suitable human or system-level verification procedures.