Transcranial direct current stimulation (tDCS) is an important method for treating mental illnesses and neurodegenerative diseases. This paper reconstructed two ex vivo brain slice models based on rat brain slice staining images and magnetic resonance imaging (MRI) data respectively, and the current densities of hippocampus after cortical tDCS were obtained through finite element calculation. Subsequently, a neuron model was used to calculate the response of rat hippocampal pyramidal neuron under these current densities, and the neuronal responses of the two models under different stimulation parameters were compared. The results show that a minimum stimulation voltage of 17 V can excite hippocampal pyramidal neuron in the model based on brain slice staining images, while 24 V is required in the MRI-based model. The results indicate that the model based on brain slice staining images has advantages in precision and electric field propagation simulation, and its results are closer to real measurements, which can provide guidance for the selection of tDCS parameters and scientific basis for precise stimulation.