In this research, we built an efficient deep learning algorithm with low computing cost intended to assist cytologists or pathologists with the task of detecting breast cancer metastases on H&E-stained WSIs and calculating HER2 and CEN17 signals for breast cancer anti-HER2 targeted therapy practically. Here, ERBB2 is linked to breast carcinoma.