Skip to content

Commit e83e9a4

Browse files
committed
Add more example images
1 parent 960845a commit e83e9a4

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

1.02 MB
Loading
453 KB
Loading

src/isar_robot/inspections.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,17 @@
3434

3535
from isar_robot.telemetry import Telemetry
3636

37-
example_image: Path = Path(
37+
example_image_1: Path = Path(
3838
os.path.dirname(os.path.realpath(__file__)), "example_data/example_image.jpg"
3939
)
40+
example_image_2: Path = Path(
41+
os.path.dirname(os.path.realpath(__file__)),
42+
"example_data/example_image_cloe_kaa.jpeg",
43+
)
44+
example_image_3: Path = Path(
45+
os.path.dirname(os.path.realpath(__file__)),
46+
"example_data/example_image_cloe_nls.jpeg",
47+
)
4048
example_thermal_image = Path(
4149
os.path.dirname(os.path.realpath(__file__)),
4250
"example_data/example_thermal_image.fff",
@@ -67,7 +75,7 @@ def create_image(task: TakeImage, telemetry: Telemetry) -> Image:
6775
image_metadata.tag_id = task.tag_id
6876
image_metadata.inspection_description = task.inspection_description
6977

70-
filepath: Path = example_image
78+
filepath: Path = random.choice([example_image_1, example_image_2, example_image_3])
7179
data = _read_data_from_file(filepath)
7280

7381
return Image(metadata=image_metadata, id=task.inspection_id, data=data)

0 commit comments

Comments
 (0)