Create a custom module
Start with Survey QA, a working example that reads processed survey metadata and writes a JSON report.
Define the package
Section titled “Define the package”Create a directory with manifest.yaml, README.md, LICENSE, and the Python entry point. Give your module a unique ID and declare its runtime, inputs, outputs and permissions. The portal builds the settings form from the manifest.
api: streetview-module-api/v1id: example-frame-summaryname: Example Frame Summarydescription: Count exported frames in a processed survey.version: 1.0.0runtime: pythonstage: post_processinginputs: [processed_survey]outputs: [report]permissions: [read_input, write_output]gpu: nonetimeout_seconds: 60entrypoint: main.pyparameters: include_recordings: type: boolean default: true description: Include frame totals by recording.Parameters support boolean, integer, number and string values. Give each a valid default. Use choices for a dropdown, min and max for numeric bounds, and advanced: true to place a setting under Advanced settings. Operators supply dependencies through the runtime image. Select python-yolo for modules that need the optional ML runner. The module process runs in a network-isolated container.
Implement the entry point
Section titled “Implement the entry point”The runner invokes python main.py <input-directory> <output-directory> <execution.json>.
- Read the staged input
manifest.jsonfor frame sequences, image paths, coordinates, recordings and available bearings. The input also contains survey images and GeoJSON. - Read
execution.jsonfor the execution, module and version identifiers and the validated parameters. - Write outputs in the output directory. Create
result.jsonwith contractstreetview-module-output/v1, the three identifiers,status: completed, alayersarray and afilesmap with each file’s category and SHA-256. Use an emptylayersarray for report-only results. - For map review, declare a
vectoroutput and register an EPSG:4326 GeoJSON FeatureCollection. Give every feature a unique string ID and use longitude, latitude coordinate order. Evidence can reference the source frame sequence and the normalized bounding box on the exported image. - Print diagnostics to the execution log via standard output or standard error. Write an integer percentage to the path in
SV_MODULE_PROGRESSto update the progress bar. Exit with a nonzero code on failure.
See the module API contract for the complete schema, model provisioning and publication options.
Attach it to SiteVerum
Section titled “Attach it to SiteVerum”Package the files from inside the module directory. Add any source files imported by your entry point.
Compress-Archive -Path manifest.yaml, README.md, LICENSE, main.py -DestinationPath ../example-frame-summary-1.0.0.zip- Choose Modules → Install ZIP and select the archive.
- Open a processed test survey, choose the module under Additional Processing, and run it with the defaults.
- Inspect Logs and Open results, then download your output under Execution files. For vector modules, verify map display, review and download. Download any temporary review edits before leaving the tab.
- Increase the manifest version when shipping changes. Install the new ZIP and select that version on your next run. Earlier executions keep their original version.