The embodiment of the invention relates to the technical field of traffic safety management, and discloses an
electric bicycle helmet wearing recognition and
driving safety control method and
system.The method comprises the steps that firstly, a fisheye camera is used for capturing an image, and the
height difference between a driver and passengers is analyzed; when the
height difference exceeds a threshold value, the target shooting angle range of the
video camera is dynamically calculated, then the target shooting angle range of the
video camera is converted into a pitching angle control parameter of the holder, and then the holder is driven to adjust the posture so as to accurately capture high-quality video data of the head area of the driver and passengers; and then the wearing state of the helmet is identified through a
deep learning model, and finally, a
vehicle control system is linked to execute a safety strategy (such as starting limitation or alarm) according to an identification result. Therefore, the problem of head shielding or view offset caused by
height difference is solved through dynamic
view angle adjustment, and the reliability and accuracy of
image acquisition are improved, so that the accuracy of helmet wearing recognition is improved, and the accuracy of
electric bicycle safety control is improved.