Openplanet plugin for MP4 vehicle detection and training sample export.
This repository is prepared for public release on GitHub. The plugin code, the Python training script, and the TCP inference server are all covered by the same MIT license unless noted otherwise.
- Detects the active vehicle from
AsyncModelName, Manialink labels,RootMap.CollectionName, andForceModelId - Tracks 0-100 km/h runs
- Captures telemetry-based training samples
- Supports continuous training segments with simple motion labels
- Exports JSONL samples for Python model training
- Stores a local dataset snapshot and manifest
Plugins/vehicle-detector- Openplanet plugin sourcePlugins/vehicle-detector/tools- Python training and inference toolsPluginStorage/vehicle-detector/mp4-vehicle-detector- training data and generated artifacts
Samples are written with a stable schema:
schema_name:mp4_vehicle_detector_sampleschema_version:1feature_columns: seedataset_manifest.json
The local dataset is stored in the Openplanet storage folder under:
mp4-vehicle-detector
- Install Python dependencies from
Plugins/vehicle-detector/tools/requirements.txt. - Run
train.pyto buildvehicle_detector_model.pklfrom the collected samples. - Run
server.pyto start the local inference server on127.0.0.1:9000. - Keep
Plugins/vehicle-detectorenabled in Openplanet so it can keep exporting telemetry.
Main.as- plugin entry pointSettings.as- settings and export constantsState.as- runtime stateUI.as- overlay and window renderingDetection.as- MP4 vehicle detectionVehicles.as- name normalization and texturesTelemetry.as- acceleration timing and fallback logicTraining.as- training capture and dataset exportFeatures.as- feature extraction helpersUtils.as- small shared utilities
- MIT - see
LICENSE
- Author:
tomekdot - Team:
vitalism-creative - Discord:
@tomekdot