The invention relates to a bubble recognition method based on
machine vision, and the method comprises the steps: obtaining an
image sequence of a test liquid environment, enabling the upstream side of a target object to be provided with a gas cavity, enabling the
image sequence to be obtained when
gas pressure is applied to the upstream side of the target object, and enabling a focal plane corresponding to the imaging of the
image sequence to form an included angle larger than 0 degree with a
vertical plane, and performing bubble recognition on the image sequence based on an image
recognition algorithm, judging whether the image sequence contains bubbles according to a recognition result so as to obtain a first bubble-containing image, and determining the
gas pressure applied to the upstream side of the target object at the collection moment according to the collection moment of the first bubble-containing image. According to the invention, the problem of low first
bubble point detection accuracy is solved. The first
bubble point is detected by obtaining the image sequence, large manual detection errors are avoided, and the detection accuracy is improved. Meanwhile, an included angle is formed between the focal plane and the
vertical plane, so that a
single image acquisition device can obtain clear images of the bubbles.