I have used the same code as the video but I am getting the following error. FYI, i have defined face_section in a ‘for loop’ and am trying to access it just after the end of the loop. As per my understanding, I should be able to do this is python.
Traceback (most recent call last):
File “face data collect.py”, line 47, in
cv2.imshow('face section', face_section)
NameError: name ‘face_section’ is not defined