File size: 6,937 Bytes
89ae044 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | # Unified cross-view dataset (v1.0.0)
Two CVAT *for images 1.1* exports of the same object-capture campaign, merged into
one lossless dataset with generated per-object view identifiers.
## Contents
```
cross_view_dataset/
├── data/originals/ # 214 annotated images (byte-for-byte copies)
├── annotations/
│ ├── labels.jsonl # 214 unified annotation records (one per source box)
│ └── annotation_schema.json # JSON Schema for a labels.jsonl record
├── metadata/
│ ├── manifest.csv # one row per merged image, with source provenance
│ ├── checksums.sha256 # SHA-256 of every stored image
│ ├── objects.csv # physical object ids and their views
│ ├── identity_flags.json # empty: all source identity issues resolved
│ ├── near_duplicates.csv # perceptual near-duplicate candidates
│ ├── excluded_unannotated_images.txt # 537 source files outside both CVAT tasks
│ ├── source_tasks.json # task ids, names, counts and export hashes
│ └── source_exports/ # exact copy of both corrected annotations.xml files
├── scripts/
│ ├── build_dataset.py # rebuild the dataset from the source exports
│ └── validate.py # integrity checks; writes quality/qc_report.md
├── quality/qc_report.md # generated validation report
├── PROJECT_REPORT.md # project-level summary and findings
└── README.md # this file
```
`PROJECT_REPORT.md` summarizes the project inputs, decisions, results and duplicate
review; `quality/qc_report.md` is the machine-generated check-by-check validation output.
## Provenance
| Batch | Source task | Images | Boxes | Device | Source image dir |
| --- | --- | ---: | ---: | --- | --- |
| batch1 | `2785034` / `Pilot_Batch_001` | 116 | 116 | Galaxy S24 Ultra | `Dataset-20261122T211055Z-1-001/Dataset` |
| batch2 | `2798655` / `Pilot_Batch_002` | 98 | 98 | Galaxy S23 Ultra | `Images` (annotated subset only) |
**Merged total: 214 images, 214 annotations, 47 distinct physical object ids (`OBJ_001`–`OBJ_047`).**
The 537 additional files in the source `Images/` directory are not referenced by
either CVAT export. They are out of scope, are **not** copied into `data/originals/`,
and are listed in `metadata/excluded_unannotated_images.txt`.
### Source identity corrections applied
Three identity fields in the batch1 source export were corrected and the dataset was
rebuilt from the corrected export:
| Annotation | Image | Original value | Corrected value | Basis |
| --- | --- | --- | --- | --- |
| `ann_0009` | `20261122_183933.jpg` (id 8) | `OBJ__003` | `OBJ_003` | Typo merge requested; surrounding captures are all `OBJ_003` |
| `ann_0019` | `20261122_185506.jpg` (id 18) | empty | `OBJ_005` | Falls inside the `OBJ_005` capture burst (ids 16–19) |
| `ann_0042` | `20261122_190012.jpg` (id 41) | empty | `OBJ_010` | Falls inside the `OBJ_010` capture burst (ids 38–42) |
Only these three `object_id` strings changed; no image, bbox, coordinate, label or
other attribute was touched. The pre-correction export is retained outside the
dataset as `../batch1/annotations.prefix_backup.xml` for audit.
## Identifiers
- `image_id` — `b1_0000`…`b1_0115`, `b2_0000`…`b2_0097`. Combines source batch with the
zero-padded CVAT image id so the two exports cannot collide.
- `annotation_id` — `ann_0001`…`ann_0214`, assigned in source order (batch1, then batch2).
- `object_id` — the physical-object identity, preserved from the corrected source export.
- `view_id` — `{object_id}_view_{index:02d}`, e.g. `OBJ_044_view_01`.
Indices are 1-based and assigned by ascending capture timestamp parsed from the
original filename, then batch, then source image id. If an image ever contained
several annotations for the same object, each would receive its own view index;
in this dataset every image has exactly one annotation, so all 214 assigned
view ids are unique.
- `source_image_id` + `source_box_index` — retained in every annotation so that each
merged record can be reconciled with the exact source box it came from.
### Views per object
47 objects: 1 view × 1, 2 views × 2, 3 views × 4, 4 views × 19, 5 views × 11,
6 views × 7, 7 views × 2, and 10 views × 1. Range: 1–10 views; 214 view ids total.
`OBJ_003`, `OBJ_005` and `OBJ_010` each gained one view from the corrections above.
## Integrity
All 214 source images and boxes are present. For each batch the validator compares
box coordinates, labels, all six CVAT attributes (`object_id`, `viewpoint`,
`lighting`, `background`, `distance`, `view_group`), `occluded`, `z_order` and
`source` against the stored corrected export, and verifies every image SHA-256.
Coordinates are the original CVAT `xtl/ytl/xbr/ybr` values, interpreted as
EXIF-oriented display pixels; no bbox was recalculated.
### Duplicate review
- No two stored images are byte-identical (214 distinct SHA-256 values).
- Six original filenames occur in both exports. They are different photos from
different devices with different boxes, so both copies were kept. Every colliding
copy is stored with a `__batch1` / `__batch2` suffix; `manifest.csv` preserves the
original filename in `original_filename`.
- Three perceptual near-duplicate candidates (64-bit dHash distance ≤ 8) were
reviewed and retained: `b2_0043`/`b2_0044`, `b2_0080`/`b2_0081`,
`b1_0103`/`b1_0104`. They are burst captures with different annotations/viewpoint
labels, not accidental duplicates.
## Validation
```bash
python3 scripts/validate.py # writes quality/qc_report.md, exit 0 on success
python3 scripts/validate.py --json # machine-readable summary
python3 scripts/validate.py --no-report
```
Checks cover: file presence, JSONL/JSON Schema conformance, id uniqueness, image
references and existence, checksums, bbox validity, `view_id` format and per-object
sequential indices, full one-to-one reconciliation with both source XMLs,
duplicate/collision detection, and documentation of out-of-scope images.
**Result: 23 checks pass, 2 warn (filename collisions and near duplicates), 0 fail —
0 errors, 9 warnings. The validator exits `0`.** See `quality/qc_report.md` for the
full check-by-check result.
## Rebuild
From this directory, with the source tree as the parent:
```bash
python3 scripts/build_dataset.py \
--batch1-xml ../batch1/annotations.xml \
--batch2-xml ../batch2/annotations.xml \
--batch1-images ../Dataset-20261122T211055Z-1-001/Dataset \
--batch2-images ../Images \
--out .
python3 scripts/validate.py
```
The build is deterministic: identical inputs produce identical ids, metadata and
image bytes.
|