Model Train Script
English
English
  • Model Train Script
  • About
  • Manual
    • Supported systems
    • Settings
    • Profile
    • Throttle
    • Vehicles
    • Layout
    • Automation
      • Scripts
        • Section
        • Action
          • Vehicle control
          • Layout control
          • Timing
          • Structure
          • Scenery
      • Time tables
      • Flags
      • Routes
      • Sounds
      • Cameras
      • Examples
        • Block control
        • Auto switch turnout
        • Camera detection
  • Release notes
Powered by GitBook
On this page
  • Blow whistle​
  • Pendle Script​
  • Script trigger​
  • Layout automation​

Was this helpful?

  1. Manual
  2. Automation
  3. Examples

Camera detection

Last updated 5 months ago

Was this helpful?

This page demostrates possibilities of camera detection in your scripts.

Blow whistle

The script is started by the detection of the locomotive, it reads the address via RailCom and blows its whistle.

This script starts the locomotive in forwards position until the camera detects it in the bounding box. The script stops the locomotive, reverses it and stops it at the starting position.

This script is started by the detection of a vehicle. The second iPhone is used as a remote camera used for detection. Once the train is detected it blows the whistle.

A nice example movie from Model Train Script in action with camera detection in action from Heinz Rosenbach.

Pendle Script

Script trigger

Layout automation

​
​
​
​