To realize the requirement of SASE FEL to electron beam, this paper optimizes the design of photo-cathode RF gun and considers the emittance compensation techniques specifically. It also makes the simulation of the particle dynamics with PARMELA. At last it gives out the optimized parameters of the initialized electron beam to minimize the normalized transverse emittance.