Improved helmet detection under partially obstructed conditions