Ferroelectric (FE) materials have been extensively applied to the multifunctional electronic devices, particularly the FE memories due to their excellent physical properties. The FE memory is a kind of nonvolatile memory device, and it could overcome the shortcomings of the traditional memory. But the development of the FE memory is very slow due to the FE failure problem. However, with the continuous decrease of the thickness of FE thin film, when it reaches microns or nanometers in magnitude, the leakage current is the main cause of the FE failure of FE thin film. The leakage current of FE thin film is directly related to whether the FE memory is applicable, and it has been the hot spot of scientific researches. There are still a lot of factors influencing the FE memory leakage current except for the thickness of the film, such as interface, processing temperature, defect, domain wall, etc. Of these factors, the defect and domain wall are the most common and the most probable. In this paper, the first-principle calculation method through combining the density function theory with the nonequilibrium Green's function is used to systematically study the influence of oxygen vacancy defect on the leakage current of the FE thin film. The doping with four kinds of Cu, Al, V, and Fe cations is used to regulate and control the leakage current of the FE thin PbTiO3 film caused by the oxygen vacancy defects. We investigate the leakage current induced by oxygen vacancies in PbTiO3 films, and the doped PbTiO3 thin FE films having oxygen vacancies. It is found that Fe and Al doping will increase the leakage current of oxygen vacancy defects of FE thin films, while the Cu and V doping significantly reduce the leakage current of oxygen vacancy defects of FE thin films. This is because the Cu and V doping have obvious pinning effect on oxygen vacancy defect. In addition, we find that the oxygen vacancies are pinned by Cu and V atoms due to the fact that the formation energy of oxygen vacancies can be remarkably reduced. So Cu and V doping in PbTiO3 not only induce the leakage current but also improve the fatigue resistance of the FE thin film induced by oxygen vacancies. Moreover, since the ionic radius of V is closer to the ionic radius of Ti than the ionic radius of Cu, V is easier to implement doping to suppress the leakage current caused by the oxygen vacancy defects. These conclusions are of important theoretical significance and application value for improving the performance of FE thin films and their FE memories.