Android - Face feature detection

前端 未结 5 1511
南方客
南方客 2021-02-02 16:24

Currently I\'m working on an app for Android phones. We want to detect features of a face. The programm should be able to detect the positions of the eyes, the nose, the mouth a

5条回答
  •  梦如初夏
    2021-02-02 17:22

    I have found a good solution for face emotion detection provided by this Microsoft API. This API returns a JSON response and emotion graph. You can try this API for a good result.

    Emotion API

    Emotion Recognition Recognizes the emotions expressed by one or more people in an image, as well as returns a bounding box for the face. The emotions detected are happiness, sadness, surprise, anger, fear, contempt, and disgust or neutral.

    • The supported input image formats includes JPEG, PNG, GIF(the first frame), BMP. Image file size should be no larger than 4MB.
    • If a user has already called the Face API, they can submit the face rectangles as an optional input. Otherwise, Emotion API will first compute the rectangles.
    • The detectable face size range is 36x36 to 4096x4096 pixels. Faces out of this range will not be detected.
    • For each image, the maximum number of faces detected is 64 and the faces are ranked by face rectangle size in descending order. If no face is detected, an empty array will be returned.
    • Some faces may not be detected due to technical challenges, e.g. very large face angles (head-pose), large occlusion. Frontal and near-frontal faces have the best results. -The emotions contempt and disgust are experimental.

    https://www.microsoft.com/cognitive-services/en-us/emotion-api

提交回复
热议问题