The invention relates to the field of capillary size calculation, and discloses a capillary geometric size calculation method, which comprises the following steps: S1, image positioning: finding the position of a capillary, and determining the center coordinate of an image and the range of subsequent measurement; s2, image binarization
processing: respectively carrying out binarization
processing on the outer circle and the inner circle; for an outer circle, a gray value is collected from the periphery to serve as a low threshold value of binaryzation; and an inner circle: calculating the boundary coordinates of the inner circle, obtaining the brightness and average brightness information at the boundary, obtaining the brightness information in the image, and calculating the binarized high threshold and the geometric dimension of the binarized image. By introducing a multi-point
fitting algorithm, selecting a plurality of reference points on an inner circle and an outer circle, utilizing different fitting strategies, integrating results of multiple times of fitting, removing abnormal values and finally selecting an optimal solution, the method can effectively reduce measurement errors caused by
image noise or irregular capillary surfaces, and the accuracy of the measurement is improved. Therefore, the reliability and stability of the fitting result are ensured.