18 lines
4.6 KiB
Python
18 lines
4.6 KiB
Python
"""Write labels.jsonl: MICHIGAN-1 kept verbatim (from work/existing.jsonl, without id), MICHIGAN-2 and -4 corrected, one added."""
|
|
import json
|
|
O = 'labeling/auto/analyses/MICHIGAN_2026-10-03T0000_2026-10-12T1600'
|
|
old = {d['id']: d for d in map(json.loads, open(f'{O}/work/existing.jsonl'))}
|
|
m1 = {k: v for k, v in old['MICHIGAN-1'].items() if k != 'id'}
|
|
expert = old['MICHIGAN-4']['description'].split('According to the expert, ', 1)[1]
|
|
labels = [
|
|
m1,
|
|
{"start": "2026-10-04T20:00Z", "end": "2026-10-05T12:00Z", "family": "Thermal displacement",
|
|
"description": "On 5 October, at the 00:00 measurement, the corr_y of all the targets rises together, a little, most clearly for COLH19N', POUH19N', COLH21'', COLH18S''' and COLH19N''; it partly comes back at 04:00, when the corr_x of several targets (COLH20'', POUH21'', COLH21' and REFH22') rises a little in turn; the corr_y of COLH19N', POUH19N' and COLH19N'' rises a little again at 08:00, then everything is back at 12:00. At the same time, the camera housing temperature drops at once and stays low until it rises again at 12:00, and the camera moves with it: at 00:00 its rotation turns and its tilt goes back a little, at 04:00 and 08:00 it nods forward and its scale drops, at 12:00 it comes back. The raw positions of all the sensors, references included, slide together, the targets without moving relative to each other; the reference REFPOU22 slides a little differently from the targets, and the compensation, still on three references, does not erase all of this movement. COLH21' and REFH22', still placed on the same point (labelled apart), move like the others. Same signature as the night of 6 October (labelled apart). Cause deduced from the curves, the camera pose and the camera housing temperature; nothing in front of the targets on the 00:00 and 08:00 images. Small deviation. For the customer: this is not a movement of the structure, nothing to do."},
|
|
{"start": "2026-10-06T00:00Z", "end": "2026-10-06T20:00Z", "family": "Thermal displacement",
|
|
"description": "On 6 October, at the 04:00 measurement, the corr_y of most targets goes down together, a little, COLH20', COLH21', REFH22', COLH21'', POUH21'' and COLH18S''' the most, and the corr_x of COLH21' and COLH20' rises a little; most come back at 08:00, but the corr_y of COLH18S''' stays low, and a little that of POUH18' and COLH18', until 16:00, and comes back at 20:00. At the same moment, the camera housing temperature makes a brief drop, lowest at 04:00, then rises again until 16:00; the camera nods forward (tilt rising, scale dropping) at 04:00, then comes back gradually until 16:00, and the raw positions of all the sensors, references included, slide together: it is the camera that moves, not the targets; the compensation, still on three references, does not erase all of this movement. The error_value of COLH18', POUH18' and COLH19N' rises a little at 04:00 and returns at 16:00. Same signature as the night of 5 October (labelled apart). Cause deduced from the curves, the camera pose and the camera housing temperature; nothing in front of the targets on the 04:00 image. Small deviation. For the customer: this is not a movement of the structure, nothing to do."},
|
|
{"start": "2026-10-08T00:00Z", "end": "2026-10-12T16:00Z", "family": "Displacement",
|
|
"description": "From 8 to 12 October, the camera gradually nods forward: its tilt rises, its pan and its rotation decrease, and all the targets slide together in the image, shrinking slightly, without moving relative to each other. Until 9 October, on three references, the compensation absorbs most of this movement, but not all: from the 04:00 measurement on 8 October, when the camera takes a clearer step forward, the corr_x of COLH18', POUH18', POUH19N', COLH21', COLH19N' and COLH18S''' rises a little and stays up, the corr_y of POUH19N' goes down a little, and the corrections of the references REF42 and REFG43N move apart. Since the loss of REFPOU22 on 9 October at 12:00 (separate label, which also covers the jump of that measurement), the compensation runs on REF42 and REFG43N alone, which do not follow this movement as the targets do (the scale computed on them even rises): the corr_x of all the targets rises slowly and clearly until the end of the range, under the back-and-forth agitation of the two-reference compensation. Its stop and slight return from the evening of 12 October are labelled apart. Deduced from the curves, the camera pose and the raw positions of the targets; nothing on the images. According to the expert, " + expert},
|
|
]
|
|
with open(f'{O}/labels.jsonl', 'w') as f:
|
|
for d in labels: f.write(json.dumps(d, ensure_ascii=False) + '\n')
|