顔メッシュ検出のコンセプト
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
顔メッシュの情報には、次の 2 つの部分があります。
368 個の 3D ポイント: 各ポイントには、検出された顔の固定位置に関連付けられた一意の ID(0 ~ 467 の範囲)が割り当てられます。各ポイントで次の処理を行います。
- x と y は、検出された顔のピクセル座標です。
- z は、画像サイズにスケーリングされた深度情報です。顔がカメラに近づくと z 値が負になります。原点は、468 ポイントすべての深さの平均です。
三角形の情報: 検出された顔の論理三角形のサーフェスを表すために使用されます。各三角形には 3 つの 3D ポイントが含まれています。たとえば、ポイント #0、#37、#164 は、鼻と唇の間に小さな三角形の領域を構築しています。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-04 UTC。
[null,null,["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eFace mesh data provides 468 3D points, each with unique ID, pixel coordinates (x, y), and depth information (z).\u003c/p\u003e\n"],["\u003cp\u003eTriangles are formed using these 3D points to represent the face's surface, like a nose-lip triangle using points #0, #37, and #164.\u003c/p\u003e\n"],["\u003cp\u003eDepth information (z) is scaled relative to image size, with closer points having more negative z-values.\u003c/p\u003e\n"]]],["The face mesh data consists of 468 unique 3D points, each with x and y pixel coordinates on the detected face and a z-value representing depth relative to the average depth of all points. Each point has an ID from 0 to 467. Additionally, the data includes triangle information, where each triangle is defined by three of these 3D points. These triangles create a surface representing the detected face, with each having its own IDs, such as points #0, #37, and #164.\n"],null,["Face mesh info contains two parts:\n\n- **468 3D points:** Each point has a unique ID, ranging from 0 to 467,\n associated with a fixed position on the detected face. For each point:\n\n - x and y are pixel coordinates of the detected face.\n - z is the depth info scaled to image size, such that z-values are more negative when the face is closer to the camera. The origin is the average depth of all 468 points.\n- **Triangle info:** This is used to represent a logical triangle surface in the\n detected face. Each triangle contains three 3D points. For example, Points\n #0, #37, and #164 construct a small triangle area between the nose and\n lips.\n\n[](/static/ml-kit/vision/face-mesh-detection/images/uv_unwrap_full.png)"]]