According to Kazipet railway police, a gangman found the detonators lying wrapped in paper while checking the track between Secunderabad and Kazipet.
He immediately informed the railway police, who removed the explosives from the spot, they said.
Further investigations are being conducted in the case, they added.