serengil / deepface

A Lightweight Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Library for Python
https://www.youtube.com/watch?v=WnUVYQP4h44&list=PLsS_1RYmYQQFdWqxQggXHynP1rqaYXv_E&index=1
MIT License
11.93k stars 2.03k forks source link

[FEATURE]: Add an optional flag to the "find" function in recognition.py to return an ndarray. #1332

Open kremnik opened 3 weeks ago

kremnik commented 3 weeks ago

Description

Currently, the find function in recognition.py file returns the information about faces in a Pandas dataframe, which is actually very convenient. However, when using this function on a large photo database, the dataframe structure can significantly slow down the finding process, particularly for operations like filtering and sorting. I suggest adding an optioanl flag to the function that allows it to process and return raw ndarray instead of creating a dataframe.

Additional Info

No response

serengil commented 3 weeks ago

it would be a good feature ONLY IF its default behaviour isn't changed. We don't want to change the default interface of find function.

kremnik commented 3 weeks ago

I agree with you, the default behavior should not be changed.

serengil commented 3 weeks ago

appreciate @kremnik as always