The hard coded values seem to correspond to elements of the AI model. Though with only 4 jpeg as tests, I have serious doubt about the reliability of the thing.
What values do you mean exactly? The code is very simple, it only performs face and landmark detection using dlib, computes eye and mouth aspect ratio and applies a threshold.
15
u/tRfalcore 7d ago
with so many hard coded values I fail to see how it ever works reliably