@マイケル山口 The face API could classify a scarf as an accessory in this case since it would be detected as a headwear. Please see the concepts of face detection from this page. Also, MS has retired some capabilities of face API that can be misused. Please read the following note from the documentation. So, anything that stereotypes people have been retired and the current API can only provide you a response if a face can be detected along with certain attributes as referenced in the above page.
Microsoft has retired facial recognition capabilities that can be used to try to infer emotional states and identity attributes which, if misused, can subject people to stereotyping, discrimination or unfair denial of services. These include capabilities that predict emotion, gender, age, smile, facial hair, hair and makeup. Read more about this decision here.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.