General doubt in face recognisation

Sir

skip += 1
if skip%10==0:
face_data.append(face_section)
print(len(face_data))

what means to store 10th face !!!

And what above code do

Thanks ans Regards:)

hey @Royal_Yashasvi,

Every webcam has a specification that how many frames it can read per second/per minute, so while creating our dataset what we are doing is we just storing that every 10th frame to be in our dataset.
You can use any number , but taking number less than 10 , might not give you much differences in those images stored ,hence your model can get overfitted to it. Hence we take 10 frame. You can take 15 , 20 , or any other.

we just keep updating the skip value , and whenever we get at a point where we get the skip value as a multiple of 10 , then at that point we just append our detected face section in to our face_data list .
and after all this, we store that list in form of a numpy array , to be further used for training.

I hope this helps you understand the points.
Thank You :slightly_smiling_face:.