FacialFeatures[image]
image 中に検出されたすべての顔について,顔の特徴の最小限のまとめを返す.
FacialFeatures[image,features]
指定された顔の features を返す.
FacialFeatures[video,…]
video のフレーム中の顔を求める.
FacialFeatures
FacialFeatures[image]
image 中に検出されたすべての顔について,顔の特徴の最小限のまとめを返す.
FacialFeatures[image,features]
指定された顔の features を返す.
FacialFeatures[video,…]
video のフレーム中の顔を求める.
詳細とオプション
- FacialFeaturesは,顔の特徴としても知られるもので,目・鼻等の位置や,年齢,性別,感情等の全体的な顔の特性を含む,検出された顔の詳細を返すことができる.
- FacialFeatures[{image1, image2,…},…]を使って複数の画像の特徴が推定できる.
- 顔の特徴は,全体的な顔特の特徴または個々の顔器官の細かい位置である.
- FacialFeatures[image,"Properties"]は可能なすべての特性と特徴を返す.以下の特徴が使用できる.
- 全体的な特徴
-
"Age" 推定年齢 "Descriptor" 顔の特徴ベクトル表現 "Emotion" 顔に現れている感情で最も可能性が高いもの "Gender" 推定性別 "Landmarks" 顔器官の連想 - 全体的な特徴の分布
-
"AgeWeights" WeightedDataオブジェクトとして "EmotionWeights" キーと値 emotion->prob の連想 "GenderWeights" キーと値 gender->prob の連想 - 形状特性
-
"BoundingBox" 顔の境界Rectangle "BoundingBoxArea" 境界ボックスの面積 "Height" 顔の長さ "Image" 顔に対応する切り取られた image "Position" {x,y}で与えられる顔の位置 "Width" 顔の幅 - 単一の点として戻ってくる個別の顔器官.
-
"LeftEyeCenter" 左目の中心 "RightEyeCenter" 右目の中心 "EyeCenter" 目の中心の点 "NoseCenter" 鼻の中心の点 "MouthCenter" 口の中心の点 "MouthLeft" 口の左側の点 "MouthRight" 口の右側の点 - 点のリストとして返される個別の顔器官
-
"LeftEyebrowPoints" 左眉毛の点 "LeftEyePoints" 左目の点 "MouthExternalPoints" 口の外側の点 "MouthInternalPoints" 口の内側の点 "NosePoints" 鼻を二分する線と鼻梁の点 "OutlinePoints" 顔の輪郭 "RightEyebrowPoints" 右眉毛の点 "RightEyePoints" 右目の点 - 顔器官の集合
-
"EyebrowPoints" 左右眉毛の連想 "EyePoints" 左右の目の連想 "MouthPoints" 口の内側と外側の連想 - デフォルトで,顔はFindFacesを使って検出され,各境界ボックスの周囲に若干の充填が行われる.Method{"FaceBoxes"boxes}を使って顔の周りの境界ボックスを指定する.
- boxes の値は以下のいずれでもよい.
-
Full 画像全体が1つの顔であると推定される {bbox1,…} 顔の境界ボックスのリスト f 顔の境界ボックスを返す任意の関数 - FacialFeaturesは機械学習を使う.含まれるメソッド,訓練集合,バイアスは,使用するWolfram言語のバージョンによって変わることがあり,返される結果も異なることがある.
- FacialFeaturesはリソースをダウンロードすることがある.ダウンロードされたリソースは,$LocalBaseのローカルなオブジェクトストアに保存され,LocalObjects[]でリストしたりResourceRemoveで削除したりできる.
例題
すべて開く すべて閉じる例 (2)
スコープ (11)
データ (5)
FacialFeatures[[image]]Dataset[%]Dataset /@ FacialFeatures[{[image], [image]}]Dataset /@ FacialFeatures[{[image], [image]}, {"Image", "Age"}]FacialFeatures[[image], "MouthCenter"]HighlightImage[[image], %]features = FacialFeatures[\!\(\*VideoBox[""]\), "MouthCenter"]HighlightVideo[\!\(\*VideoBox[""]\), features]特徴 (6)
FacialFeatures[[image], "Age"]FacialFeatures[[image], "Gender"]FacialFeatures[[image], {"Age", "Gender"}]FacialFeatures[[image], "Descriptor"]//ShortFacialFeatures[[image], {"Image", "Width", "Height", "BoundingBoxArea"}]//Dataseti = [image];
landmarks = FacialFeatures[i, "Landmarks"];HighlightImage[i, {PointSize[0.01], Values[landmarks]}]オプション (3)
Method (3)
デフォルトで,FacialFeaturesは画像中のすべての顔を検出しようとする:
i = [image];FacialFeatures[i, {"Image", "Gender"}]Method"FaceBoxes"box を使って顔のボックスを指定する:
FacialFeatures[i, {"Image", "Gender"}, Method -> {"FaceBoxes" -> Rectangle[{18, 122}, {76, 180}]}]FacialFeatures[i, {"Image", "Gender"}, Method -> {"FaceBoxes" -> {Rectangle[{18, 122}, {76, 180}], Rectangle[{74, 100}, {125, 160}]}}]FacialFeatures[[image], {"Image", "Gender"}, Method -> "FaceBoxes" -> FindFaces]FacialFeatures[[image], {"Image", "Gender"}, Method -> "FaceBoxes" -> Full]アプリケーション (4)
HighlightImage[[image], FacialFeatures[#, "Landmarks"]&, ImageLabels -> None, ImageLegends -> All]i = [image];weights = FacialFeatures[i, "AgeWeights"]Histogram[weights, {5}, ChartLegends -> Image[FacialFeatures[i, "Image"], ImageSize -> 50]]GroupBy[{[image], [image], [image], [image], [image]}, FacialFeatures[#, "Gender", Method -> "FaceBoxes" -> Full]&]i = [image];FeatureSpacePlot[FacialFeatures[i, "Image"], FeatureExtractor -> (FacialFeatures[#, "Descriptor"][[1]]&)]特性と関係 (2)
Wolfram Neural Net Repositoryのニューラルネットを使って顔の特徴を抽出する:
net = NetModel["Vanilla CNN for Facial Landmark Regression"]faces = FindFaces[[image], "Image"]MapThread[HighlightImage[#1, {PointSize[.1], #2}, DataRange -> {1, 1}]&, {faces, net /@ faces}]HighlightImage[[image], Values @* FacialFeatures["MouthPoints"], ImageSize -> 250]関連項目
FindFaces FaceAlign FaceRecognize HighlightImage HighlightVideo FeatureExtract Predict Classify
分類器: FacialAge FacialGender FacialExpression NotablePerson
Function Repository: ImageAlignFaces
関連するガイド
-
▪
- コンピュータビジョン ▪
- 画像計算機能の更新履歴 ▪
- 動画解析
テキスト
Wolfram Research (2018), FacialFeatures, Wolfram言語関数, https://reference.wolfram.com/language/ref/FacialFeatures.html (2025年に更新).
CMS
Wolfram Language. 2018. "FacialFeatures." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/FacialFeatures.html.
APA
Wolfram Language. (2018). FacialFeatures. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FacialFeatures.html
BibTeX
@misc{reference.wolfram_2026_facialfeatures, author="Wolfram Research", title="{FacialFeatures}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/FacialFeatures.html}", note=[Accessed: 16-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_facialfeatures, organization={Wolfram Research}, title={FacialFeatures}, year={2025}, url={https://reference.wolfram.com/language/ref/FacialFeatures.html}, note=[Accessed: 16-September-2026]}