generated from dopt-python/py311
change order of width and height, related to #24
This commit is contained in:
parent
d1279e167a
commit
780243694f
File diff suppressed because one or more lines are too long
@ -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(
|
||||
".", ","
|
||||
),
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user