The cyclist who swerved round a level crossing barrier and was almost hit by a train as a result has been formally cautioned by police.

The 26-year-old woman was caught on CCTV ignoring the barrier on September 12. She came forward voluntarily after an appeal by British Transport Police, according to the BBC.

The CCTV footage was posted on YouTube and the BBC. It shows the woman slamming on her brakes as she reaches the edge of the tracks at Waterbeach, Cambridgeshire. A second later a train speeds through the crossing.

The YouTube footage was made private when the woman came forward, but it can still be seen on the BBC.

Train operator Greater Anglia said that the driver had applied the emergency brake when he saw the rider. She can be seen edging back from the track as the train passes, before turning round and heading back in the direction she came from.

The crossing at Waterbeach is a busy one, with over 100 trains per day passing through at up to 75 mph. British Transport Police said there had been 70 reported incidents at level crossings in Cambridgeshire since January 1, but near-misses such as this one were “extremely rare”.

The woman was cautioned under section 36 of the Malicious Damages Act 1861.