The invention belongs to the technical field of image
data processing, and discloses a driver fatigue state early warning method and
system based on face recognition tracking, and the method comprises the steps: extracting a face region through semantic segmentation, splitting a single-channel gray-
scale map, calculating the local complexity and
noise degree of a pixel point, obtaining a window adjustment coefficient, and carrying out the adjustment of the window adjustment coefficient; the size of the adaptive window is determined, different pixel region features can be adapted in a targeted manner, and the
processing deviation caused by a fixed window is effectively reduced; an illumination component is subsequently extracted based on an adaptive window, and the image is enhanced through a
Retinex algorithm, so that the face
image quality under complex illumination can be improved, and the detail definition is improved; and finally, the fatigue degree is detected in combination with a PERCLOS
algorithm, so that the facial fatigue characteristics of the driver can be more accurately captured, and effective recognition and early warning of the fatigue state are realized. According to the invention, continuous and stable monitoring can be realized in the driving process, reliable guarantee is provided for
driving safety of a driver, and the risk of accidents caused by fatigue driving is reduced.