<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Face-Landmark-Detection on Selvam Subbiah</title><link>https://selvamsubbiah.com/tags/face-landmark-detection/</link><description>Recent content in Face-Landmark-Detection on Selvam Subbiah</description><generator>Hugo -- 0.154.3</generator><language>en-us</language><lastBuildDate>Sun, 21 Nov 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://selvamsubbiah.com/tags/face-landmark-detection/index.xml" rel="self" type="application/rss+xml"/><item><title>Facial Landmarks Detection using MediaPipe Face Mesh in TensorFlow.js - Part 2</title><link>https://selvamsubbiah.com/mediapipe-facemesh-triangles-in-tensorflow-js-part-2/</link><pubDate>Sun, 21 Nov 2021 00:00:00 +0000</pubDate><guid>https://selvamsubbiah.com/mediapipe-facemesh-triangles-in-tensorflow-js-part-2/</guid><description>&lt;p&gt;This article is the continuation of the &lt;a href="https://selvamsubbiah.com/mediapipe-facemesh-in-tensorflow-js/"&gt;previous article&lt;/a&gt;
on MediaPipe Face Mesh model in TensorFlow.js, where we looked at the basic usage of this model. Here, we will look at how to connect the 468 3D facial landmark predictions as multiple triangles to create a &lt;a href="https://en.wikipedia.org/wiki/Triangle_mesh" target="_blank" rel="noopener noreferrer"&gt;triangle mesh&lt;/a&gt;
of the face.&lt;/p&gt;
&lt;h2 id="1-triangle-mesh"&gt;1. Triangle Mesh&lt;/h2&gt;
&lt;p&gt;To create a triangle mesh from the 468 [x,y,z] coordinates, we will need to identify which are the set of points that need to be connected to form triangles. Luckily Google has provided those indexes for us to draw the triangle mesh. It is present in the &lt;a href="https://github.com/tensorflow/tfjs-models/blob/master/face-landmarks-detection/demo/triangulation.js" target="_blank" rel="noopener noreferrer"&gt;triangulation.js&lt;/a&gt;
file located in the Github repo of the pre-trained model.&lt;/p&gt;</description></item></channel></rss>