Track AI or Real Traffic

Is there a way to fix camera to ai or real traffic?