Build a minimal project JSON with a single image group.
(
detection_mode: str = "autodetect", start_hex: str = "", end_hex: str = ""
)
| 205 | |
| 206 | |
| 207 | def _image_project( |
| 208 | detection_mode: str = "autodetect", start_hex: str = "", end_hex: str = "" |
| 209 | ) -> dict: |
| 210 | """Build a minimal project JSON with a single image group.""" |
| 211 | group = { |
| 212 | "title": "Camera", |
| 213 | "widget": "image", |
| 214 | "datasets": [], |
| 215 | "imgDetectionMode": detection_mode, |
| 216 | "imgStartSequence": start_hex, |
| 217 | "imgEndSequence": end_hex, |
| 218 | } |
| 219 | return { |
| 220 | "title": "Image Test", |
| 221 | "frameStart": "/*", |
| 222 | "frameEnd": "*/", |
| 223 | "frameDetection": 1, |
| 224 | "checksum": "", |
| 225 | "frameParser": "function parse(frame) { return [frame]; }", |
| 226 | "groups": [group], |
| 227 | } |
| 228 | |
| 229 | |
| 230 | def _setup_image_project( |
no outgoing calls
no test coverage detected