Homologous recombination deficiency (HRD) refers to the dysfunction of homologous recombination repair (HRR) at the cellular level. The assessment of HRD status has the important significance for the formulation of treatment plans, efficacy evaluation, and prognosis prediction of patients with ovarian cancer. This study aimed to construct a deep learning-based classifier for identifying tumor regions from whole slide images (WSIs) and stratify the HRD status of patients with ovarian cancer (OC). The deep learning models were trained on 205 H&E-stained sections which contained 205 ovarian cancer patients, 64 were found to have HRD status while 141 had homologous recombination proficiency (HRP) status from two institutions Memorial Sloan Kettering Cancer Center (MSKCC) and Zhongda Hospital, Southeast University. The framework includes tumor regions identification by UNet + + and subtypes of ovarian cancer classifier construction. Referring to the EasyEnsemble, we classified the HRP patients into three distributed subsets. These three subsets of HRP patients were combined with the HRD patients to establish three new training groups for subsequent model construction. The three models were integrated into a single model named Ensemble Model. The UNet + + algorithm segmented tumor regions with 81.8% accuracy, 85.9% recall, 83.8% dice score and 68.3% IoU. The AUC of the Ensemble Model was 0.769 (Precision = 0.800, Recall = 0.727, F1-score = 0.762) in the study. The most discriminative features between HRD and HRP comprised S_mean_dln_obtuse_ratio, S_mean_dln_acute_ratio and mean_Graph_T-S_Betweenness_normed. The models we constructed enables accurate discrimination between tumor and non-tumor tissues in ovarian cancer as well as the prediction of HRD status for patients with ovarian cancer.