The invention relates to the technical field of machine vision, and discloses a water outlet control method for an automatic water dispenser. The water outlet control method comprises the following steps: 1, putting a transparent cup body below a water outlet of the automatic water dispenser, shooting the transparent cup body by using a camera, and selecting a plurality of frames of images from ashot video at equal time intervals; 2, selecting an ROI (Region of Interest) by taking a cup mouth central point of the transparent cup body as an image central point; 3, performing edge detection onthe ROI to obtain the inner edge of the cup mouth and the upper edge of the liquid level; 4, establishing a rectangular coordinate system by taking the corner point of the ROI as an original point, calculating the number of pixel points between the upper edge of the inner edge of the cup mouth and the upper edge of the liquid level, and comparing the number of the pixel points with a second numberthreshold value; and 5, if the number of the pixel points is smaller than a second number threshold value, for the water outlet of the automatic water dispenser, stopping discharging water otherwise,repeating the step 2 to the step 4, and processing the selected next frame of image.