Trains were delayed on the Midland line overnight after an alleged drunk driver crashed into a boom gate in Bayswater.

The incident happened about 7pm railway crossing between Guildford Road and Railway Parade.

The driver, reportedly in his 50s, was taken to Royal Perth with minor injuries. He was charged with driving under the influence and summonsed to appear in court at a later date.

The boom gate has since been repaired.