In this paper, we present an ROI detection method for WSI and demonstrated it for human epidermal growth factor receptor 2 (HER2) grading for breast cancer patients. This evidence concerns the gene ERBB2 and breast carcinoma.