Python : face racognition (cv2.face.LBPHFaceRecognizer_create() )

Looks like you miugh tneed this: createLBPHFaceRecognizer()

I also want to highlight you have redundant code here:

You import “Overlay” twice.
You instantiate Overlay once but don’t assign it to anything. (download() isn’t needed as the .bit is downloaded by default when you instantiate.)

Overlay(“base.bit”).download()

You then instantiate it again:

base = Overlay(‘base.bit’)

I suggest you just do this:

from pynq import Overlay
from pynq.lib.video import *

base = Overlay(‘base.bit’)

Cathal