Visual monitoring of freight trains