Development of A.I Vision Safety Solution for Tram