Due to the energy crisis and environmental pollution, electric vehicles have become more and more popular. Compared to traditional fuel vehicles, the electric vehicles are integrated with more high-voltage components, which have potential security risks of insulation. The insulation resistance between the chassis and the direct current bus of the battery pack is easily affected by factors such as temperature, humidity and vibration. In order to ensure the safe and reliable operation of the electric vehicles, it is necessary to detect the insulation resistance of the battery pack. This paper proposes an insulation detection scheme based on low-frequency signal injection method. Considering the insulation detector which can be easily affected by noises, the algorithm based on Kalman filter is proposed. Moreover, the battery pack is always in the states of charging and discharging during driving, which will lead to frequent changes in the voltage of the battery pack and affect the estimation accuracy of insulation detector. Therefore the recursive least squares algorithm is adopted to solve the problem that the detection results of insulation detector mutate with the voltage of the battery pack. The performance of the proposed method is verified by dynamic and static experiments.