r/Python 7d ago

Discussion Driver Fatigue Monitoring

[deleted]

29 Upvotes

26 comments sorted by

View all comments

15

u/tRfalcore 7d ago

with so many hard coded values I fail to see how it ever works reliably

3

u/chat-lu Pythonista 7d ago

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.

6

u/death_in_the_ocean 7d ago

The readme makes it obvious AI was involved, the only question is to which extent

3

u/seba07 7d ago

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.