after getting my facial image pixels from the image or frame which will be a numpy 3d Matrix as it is a coloured image how can i reshape the size of the matrix ?? in the video by prateek bhaiya he has done something like this
face_section=frame[y-offset:y+h+offset ,x-offset:x+w+offset]
got my face_section pixels
face_section=cv2.resize(face_section,(100,100))
how can we resize this 3d matrix into (100,100) 2d matrix and what if there were more pixels than 100*100 or less
plz help me with this