Aiming at the needs of intelligent car and pedestrian interaction testing under urban conditions, this paper proposes a scenario generation method that comprehensively considers the frequency of scenarios in the real world and the degree of challenge to human-vehicle interaction performance. First, according to the key features of intelligent car and pedestrian interaction, the original scene data of pedestrians crossing the road is extracted from the natural driving dataset; then, according to the needs of accelerated testing, a key scenario extraction method based on importance sampling theory is designed to extract and construct important scenarios for intelligent car-pedestrian interaction testing from the original scenes; finally, by comparing the data distribution of important scenarios with original scenarios, it is shown that this method can effectively screen out scenarios that may challenge safety performance during driving, thereby realizing accelerated testing, while taking into account the statistical characteristics of the test scenarios.