Speedup predict
Hello, can anybody share a solution how to reduce operation time for LBPHFaceRecognizer model->predict() method? When i load more than 100 faces to the trainset and after training start the prediction loop, it works very slow. How to increase the perfomance?
Can you count the time of predict (from OpenCV) count the time of your function that does the prediction? Are you sure that the amount of time is in the predict function or near it, in your code?
I am not sure.. Ok i understand the task.. I will measure the time of predict function with 10 faces in training set and with 200 faces. And let you know the results..
For 10 faces it takes 3 msec For 200 faces it takes 40-45 msec
10, you want to say 10 different persons, or a db of 10 faces for one person?
No i mean one person. Firstly i run the code with 10 faces for one person and it took 3 msec, then i run 200 faces for the same person and it took 40-45 msec.
I tried to use openMP to reduce work time of function, but result became worse. it takes 70-75 msec if i use openMP for predict:
Can anybody help me please?