The range that you are giving in the offset

when we have to increase the size in all x and y
then why y-offset:y+h+offset.

in the above statement why cant we use y:y+offset

please explain me why the that statement is used and why cant we use this one

Hey @sankalparora5, offset has small value 0-10. If you do, y:y+offset do you think from y to y+10 (assuming offset to be 10) we will get complete face section.

Offset is basically the margin, so it should be added on all four edges of the face_section, which should be y-offset:y+h+offset. This statement is used to add the margin to the face_section detected.

Hope this resolved your doubt.
Plz mark it as resolved in my doubts section. :blush: