The measure was taken after a spate of incidents involving people climbing over trackside fences to get as close as possible to the steam engine.
Overeager rail enthusiasts are causing Flying Scotsman and other trains to slow down or even stop due to fears that a member of the public will be hit.
British Transport Police (BTP) released a photograph of two people standing next to a 125mph line in Elford, Staffordshire and asked anyone who recognises them to come forward.
Simon Baylis, communications manager of the National Railway Museum, which owns Flying Scotsman, told the Press Association: "It's a big priority for us to make sure things run safely.
"We're not prepared to accept the risks we saw over the bank holiday weekend.
"One of the measures brought in is cameras. They can capture evidence which can be used for prosecutions.
"It's partly a deterrent, but can be used for prosecuting people too."
BTP officers are also being deployed on all mainline journeys by Flying Scotsman to make it easier to catch offenders.
CrossCountry train drivers have expressed concern about the dangers of people standing inside boundary fences.
One driver posted on Twitter: "Driving the train ahead of Flying Scotsman was probably the most stressful experience I have ever had to endure in nearly 10 years on the railway and not one I wish to repeat any time soon.
"At one point there were no less than eight Cross Country trains at a stand (not moving) in areas where we'd ordinarily expect to be zipping by at 125mph because of people believing it's okay to trespass on the railway.
"If a person trespassed at Heathrow and stood next to a runway to take pictures, the airport would be closed, the planes would be diverted and they would be arrested.
"If a person set up their tripod on a motorway, traffic would stop and the person would be arrested."