The invention relates to the technical field of
size measurement, in particular to a method and a
system for measuring the size of a transparent
bottle body. The transparent
bottle body size measurement method comprises the steps of obtaining a first image of a current transparent
bottle body, wherein the first image comprises the current transparent bottle body and a background; extracting a second image of the current transparent bottle body in the first image; in a
template library, determining a target template image matched with the second image and the position of the size to be measured corresponding to the target template image; the
template library is constructed based on images of historical transparent bottle bodies, and the historical transparent bottle bodies and the current transparent bottle bodies are the same in type; and detecting the second image according to the position of the to-be-measured size, and determining the size of the current transparent bottle body. According to the method, the size of the current transparent bottle body can be detected based on the image of the current transparent bottle body, the problems of low
measurement precision and low efficiency caused by manual detection are reduced, the universality of detection equipment is improved through a
template matching technology, and the
measurement precision and speed are improved.