In conclusion, with deep learning, we built a fully automated pipeline to quantify CD3+ and CD8+ T-cells densities in the stroma region on IHC-stained WSIs of stage II–III CRC. Here, CD8A is linked to colorectal carcinoma.