Hard hat wearing detection based on head keypoint localization