The invention discloses a roller
shutter machine up-and-down limiting method and
system based on image recognition, and belongs to the technical field of roller
shutter machine recognized.The method specifically comprises the steps that a camera is arranged over the top of a
greenhouse, a round indicator lamp is arranged on the surface of a main motor of a roller
shutter machine, and the distance L between the round indicator lamp and a lens is recorded when the roller shutter machine is located at an upper limiting position; setting the
object distance of the camera according to the distance L; recording the circular
light spot diameter d /
light spot diameter D of the circular indicator lamp in the camera sensor when the roller shutter machine is located at the upper limit /
lower limit; in the process of opening or closing the
greenhouse heat preservation curtain,
video image frames are obtained in real time, the image frames are preprocessed, circular light spots in the image frames are recognized, the
diameter of the circular light spots is obtained, and when the diameter of the circular light spots is equal to d, it is judged that the curtain rolling machine is located at the upper limit, and a power source of the curtain rolling machine is turned off; and when the diameter of the circular
light spot is equal to D, determining that the roller shutter machine is located at the
lower limit, and turning off the power supply of the roller shutter machine.