Just delete your face data and scan it again without hat or mask, on daylight...in outdoor...and don't shake the camera...and if you're wondering that it's not working in night time or in dark areas...well it's just a camera that unlocks it...and it is less secure...
face unlock is working great...