Apply changes to meet customer specification #27

Merged
foefl merged 14 commits from main_adapted into main 2026-01-07 09:30:57 +00:00
3 changed files with 3666 additions and 2316 deletions
Showing only changes of commit 780243694f - Show all commits

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