// MoodDetector...
-
So In mood detection first of all we going to load modals.., and going to use and useRef hooks also..
-
In second move i am going to start the video so going to use an function its gonna be async and await is going to use , its asks first user for the media access then its started working .. then we saved the video ref to the and object ..
-
In next move we are going to do the detections detectallfaces and all that we can use..
-
Then we are going to extract expressions..
-
Then we find the dominantMood by use the array reduce method..