[WIP]Azure Face APIの機能いつも忘れてしまうので概要をメモする
はじめに
用語
faceId
Detect APIによって生成されるID。
presistedFaceId
期限切れにならないfaceIdのこと。
faceIdがfaceListIdまたはlargeFaceListIdに追加すると期限切れにならない。
Face
Detect
サンドボックス
Find Similar
サンドボックス
概要
Given query face's faceId, to search the similar-looking faces from a faceId array, a face list or a large face list. faceId array contains the faces created by Face - Detect, which will expire 24 hours after creation. A "faceListId" is created by FaceList - Create containing persistedFaceIds that will not expire. And a "largeFaceListId" is created by LargeFaceList - Create containing persistedFaceIds that will also not expire. Depending on the input the returned similar faces list contains faceIds or persistedFaceIds ranked by similarity.
Find similar has two working modes, "matchPerson" and "matchFace". "matchPerson" is the default mode that it tries to find faces of the same person as possible by using internal same-person thresholds. It is useful to find a known person's other photos. Note that an empty list will be returned if no faces pass the internal thresholds. "matchFace" mode ignores same-person thresholds and returns ranked similar faces anyway, even the similarity is low. It can be used in the cases like searching celebrity-looking faces.
The 'recognitionModel' associated with the query face's faceId should be the same as the 'recognitionModel' used by the target faceId array, face list or large face list.
-
faceId配列・FaceList・LargeFaceListの中から、指定したfaceIdと似た顔を検索する
-
faceId配列には、Face - Detect APIによって生成されたfaceIdが含まれるが、作成後24時間で期限切れになるため、一時的にしか利用できない。
-
faceListIdは、FaceList - Created APIによって生成される
-
largeFaceListIdは、LargeFaceList - Createによって生成される
- faceListIdおよびlargeFaceListIdに追加されたfaceIdは、期限切れにならない
-
顔に類似した順に並び替えられたリストが結果として返される。
-
2つのモードがある
- matchPerson、matchFace
-
matchPerson
- デフォルト
- 内部的な同一人物判定しきい値を使って、同一人物を探そうとする
- しきい値を超える顔がない場合は、空のリストが返却される
- 既知の人物の他の写真を探すのに使える
-
matchFace
- 上記のしきい値を無視して、類似度が低くても、必ず類似度に並んだリストを返却する
- 似ている有名人を探すときに使える
-
クエリ対象の顔のfaceIdと、比較対象のfaceId array、face list, large face Listに使用されるモデルは同じでなければならない。
[WIP]Group
サンドボックス
概要
Divide candidate faces into groups based on face similarity.
- The output is one or more disjointed face groups and a messyGroup. A face group contains faces that have similar looking, often of the same person. Face groups are ranked by group size, i.e. number of faces. Notice that faces belonging to a same person might be split into several groups in the result.
- MessyGroup is a special face group containing faces that cannot find any similar counterpart face from original faces. The messyGroup will not appear in the result if all faces found their counterparts.
- Group API needs at least 2 candidate faces and 1000 at most. We suggest to try Face - Verify when you only have 2 candidate faces.
- The 'recognitionModel' associated with the query faces' faceIds should be the same.
顔の類似度に応じて、グループに分類する。
[WIP]Identity
サンドボックス
概要
1-to-many identification to find the closest matches of the specific query person face from a person group or large person group.
For each face in the faceIds array, Face Identify will compute similarities between the query face and all the faces in the person group (given by personGroupId) or large person group (given by largePersonGroupId), and return candidate person(s) for that face ranked by similarity confidence. The person group/large person group should be trained to make it ready for identification. See more in PersonGroup - Train and LargePersonGroup - Train.
person groupまたはlarge person groupから特定の個人の顔に最も近いものを探すための、1対多の識別
- person group/large person groupの中に登録されている顔を、類似度の高い順に並べて返却する
- person group/large person groupは事前に学習されている必要がある
Verify
FaceList
- 1つのFaceListの上限は1000。
- FaceListは1つのサブスクリプションにつき64個まで作成可能。
- Create APIで空のFaceListを生成し、Add Face APIで追加する。
Delete
Delete Face
Get
List
Update
LargeFaceList
TODO
LargePersonGroup
TODO
LargePersonGroup Person
TODO
PersonGroup
TODO
PersonGroup Person
TODO
Snapshot
TODO
Discussion