With the progress in cancer immunotherapy using immune checkpoint blockade (ICB) therapy, histological observations of tumor-infiltrating lymphocyte (TIL) status are needed to evaluate the antitumor effect of ICB using imaging analysis software.Formalin-fixed paraffin-embedded sections obtained from colorectal cancer and gastric cancer patients with more than 500 single nucleotide variants were stained with anti-CD8 and anti-PD-1 antibodies. Based on our own algorithm and imaging analysis software, an automatic TIL measurement method was established and compared to the manual counting methods.In the CD8An imaging software-based automatic measurement could be a simple and useful tool for evaluating the therapeutic effect of cancer immunotherapies in terms of TIL status.