Skip to content

Is the scale value in photo_info.json saved twice for each image?

It seems the "scale": "Value... line is saved twice in photo_info.json, once on its own, once inside "scale_info". Is that intended?

{
  "checkered.png": {
    "scale": "Value(value=39.5, unit=CompoundUnit(numerator={Unit(base_unit=BaseUnit.px, prefix=SIPrefix.none, dim=1)}, denominator={Unit(base_unit=BaseUnit.m, prefix=SIPrefix.m, dim=1)}))",
    "scale_info": {
      "reference_length": "Value(value=2, unit=Unit(base_unit=BaseUnit.m, prefix=SIPrefix.m, dim=1))",
      "scale": "Value(value=39.5, unit=CompoundUnit(numerator={Unit(base_unit=BaseUnit.px, prefix=SIPrefix.none, dim=1)}, denominator={Unit(base_unit=BaseUnit.m, prefix=SIPrefix.m, dim=1)}))",
      "scale_line": "ScaleLineInfo(p1=(657, 11), p2=(657, 90), length=Value(value=79, unit=Unit(base_unit=BaseUnit.px, prefix=SIPrefix.none, dim=1)))"
    },
    "approved": {
      "Labels": null,
      "Reflections": null
    },
    "label_images_info": {
      "Labels": {
        "approved": null
      },
      "Reflections": {
        "approved": null
      }
    }
  }
}