This a quite basic TF.js example but then you can try to train your own model with some state of the art models as generally image datasets are different from the video datasets:

  
      

      CodeProject – 2 Mar 21
  

  
    

Detecting Facial Emotions in the Browser with Deep Learning Using TensorFlow.js 1

  In this article we'll use the key facial landmarks to infer more information about the face from the images.

  
    Reading time: 7 min read