Search code examples
pythonopencvface-recognition

Using Numpy Arrays to load encoded faces faster in an OpenCV project


I want to build a simple face recognition project. But Every time I start my program it takes really long time to encode all the Images and the load those encoded images.Can someone please tell me if I can pre-encode all the images and then directly load the encodings. I am a beginner please help me 😭😭.

I was trying to convert all the faces into numpy arrays but that did not quite workout. But I have a feeling that this is the direction I should go please tell me If I am right or not


Solution

  • In short words: if you already can get face encodings from your images into some data structure, - what a problem to store that data structure permanently for future use?! Use Pickle, some SQL (the simpliest one - sqlite3) or nonSQL database, whatever.