Processing face detection?

Hello! I am working on my school project and thinking of using face (mouth) detection in processing.
I have searched few days, but I am not sure if processing can do mouth open and close detection.
Is there any way to do it?

thanks!

Hi nothingnew,

I’ve done some looking about, I’d start with OpenCV

See the examples, you should be able to get something working with that

Don’t know about Processing Java but you can easily do it in p5.js. Use clmtrackr to detect mouth and check distance between points around mouth to decide mouth is open or not. Here is example code.

2 Likes

Hi there, I wanted to ask, is OpenCV for processing as precise as this clmtrackr that you suggest? OpenCV draws rectangle, but this is, I think more precise because of the control points around the features?

Thanks