change order of width and height, related to #24

This commit is contained in:
Florian Förster 2026-01-07 07:39:18 +01:00
parent d1279e167a
commit 780243694f
3 changed files with 3666 additions and 2316 deletions

File diff suppressed because one or more lines are too long

View File

@ -145,8 +145,8 @@ def measure_length(
sensor_sizes.append(
(
f"{dimB:.3f}".replace(".", ","),
f"{dimA:.3f}".replace(".", ","),
f"{dimB:.3f}".replace(".", ","),
f"{pixel_count / pixels_per_metric_X / pixels_per_metric_Y:.1f}".replace(
".", ","
),

View File

@ -69,7 +69,7 @@ def test_measure_length(single_img_path):
)
assert len(data["sensor_sizes"]) == 18
assert isinstance(data["sensor_sizes"][0], str)
assert float(data["sensor_sizes"][0].replace(",", ".")) == pytest.approx(1266.932)
assert float(data["sensor_sizes"][0].replace(",", ".")) == pytest.approx(1207.171)
img_left = imgs["left"]
assert 235 < img_left.shape[0] < 260
assert 910 < img_left.shape[1] < 960