We demonstrate that, under Lorentz transformation, the frequency and the energy of an electromagnetic wave train form a linear relationship, emulating the equation of photon energy \(E=\hbar\omega\). This shows that wave-particle duality of light is compatible under space time transformation.