The shape of a fruit is one of the main characteristics of fruit morphology, and its quantitative description is crucial to improve fruit quality. However, the shape of a pear fruit is relatively complex, and difficult to describe comprehensively. This study aimed to quantitatively analyze the morphological diversity of 2D fruit shapes of 276 cultivars, covering 6 groups including Pyrus pyrifolia, Pyrus bretschneideri, Pyrus ussuriensis, Pyrus sinkiangensis, Pyrus communis and interspecific hybridization, and discover shape traits with high heritability. Through an automated image processing method, the fruit contour was first accurately extracted, and then geometrical parameters and Fourier descriptors of the pear fruit shape were obtained. Furthermore, principal components (PCs) of the Fourier descriptors were analyzed, and the broad-sense heritability (H2) of the PCs and standardized width (WSD) were estimated. After that, the pear shape stability was calculated, and cultivars were clustered by their shape characteristics. This paper mainly discusses the longitudinal section, as the cross-section variation among cultivars is small. For the longitudinal section, the results showed more than 95 % of the two-dimensional shape variation can be explained by only six principal components; WSD20, WSD30 and PC1 have high H2; the shape stability of western pear was the lowest; a new class of shape was found by clustering the shape traits. The results indicated that the proposed pipeline can provide an objective and comprehensive quantitative description of pear fruit shape for a wide range of cultivars, which is necessary to discover the key genes determining pear shape. This approach is also beneficial for research on pear breeding and germplasm resource management.