The presence of mast cells in the inner margin and peritumor areas of hepatocellular carcinoma after resection confers a favorable prognosis. This study endorses QuPath image analysis software as a promising platform that could meet the need for reproducibility, consistency, and accuracy in digital pathology.