|
34 | 34 |
|
35 | 35 | from isar_robot.telemetry import Telemetry |
36 | 36 |
|
37 | | -example_image: Path = Path( |
| 37 | +example_image_1: Path = Path( |
38 | 38 | os.path.dirname(os.path.realpath(__file__)), "example_data/example_image.jpg" |
39 | 39 | ) |
| 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 | +) |
40 | 48 | example_thermal_image = Path( |
41 | 49 | os.path.dirname(os.path.realpath(__file__)), |
42 | 50 | "example_data/example_thermal_image.fff", |
@@ -67,7 +75,7 @@ def create_image(task: TakeImage, telemetry: Telemetry) -> Image: |
67 | 75 | image_metadata.tag_id = task.tag_id |
68 | 76 | image_metadata.inspection_description = task.inspection_description |
69 | 77 |
|
70 | | - filepath: Path = example_image |
| 78 | + filepath: Path = random.choice([example_image_1, example_image_2, example_image_3]) |
71 | 79 | data = _read_data_from_file(filepath) |
72 | 80 |
|
73 | 81 | return Image(metadata=image_metadata, id=task.inspection_id, data=data) |
|
0 commit comments