MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _image_project

Function _image_project

tests/integration/test_image_view.py:207–227  ·  view source on GitHub ↗

Build a minimal project JSON with a single image group.

(
    detection_mode: str = "autodetect", start_hex: str = "", end_hex: str = ""
)

Source from the content-addressed store, hash-verified

205
206
207def _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
230def _setup_image_project(

Callers 1

_setup_image_projectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected