Analysis of Face Recognition Algorithm: Dlib and OpenCV

Suwarno Suwarno(1*), Kevin Kevin(2),

(1) Universitas Internasional Batam
(*) Corresponding Author


In face recognition there are two commonly used open-source libraries namely Dlib and OpenCV. Analysis of facial recognition algorithms is needed as reference for software developers who want to implement facial recognition features into an application program. From Dlib algorithm to be analyzed is CNN and HoG, from OpenCV algorithm is DNN and HAAR Cascades. These four algorithms are analyzed in terms of speed and accuracy. The same image dataset will be used to test, along with some actual images to get a more general analysis of how algorithm will appear in real life scenarios. The programming language used for face recognition algorithms is Python. The image dataset will come from LFW (Labeled Faces in the Wild), and AT&T, both of which are available and ready to be downloaded from the internet. Pictures of people around the UIB (Batam International University) is used for actual images dataset. HoG algorithm is fastest in speed test (0.011 seconds / image), but the accuracy rate is lower (FRR = 27.27%, FAR = 0%). DNN algorithm is the highest in level of accuracy (FRR = 11.69%, FAR = 2.6%) but the lowest speed (0.119 seconds / picture). There is no best algorithm, each algorithm has advantages and disadvantages.
Keywords: Python, Face Recognition, Analysis, Speed, Accuracy.


Python, Face Recognition, Analysis, Speed, Accuracy

Full Text:



Agrawal, A., & Samson, S. (2016). A Review on Feature Extraction Techniques and General Approach for Face Recognition. International Journal of Computer Applications Technology and Research, 5(3), 156–158.

Agrawal, S., & Khatri, P. (2015). Facial Expression Detection Techniques: Based on Viola and Jones Algorithm and Principal Component Analysis. International Conference on Advanced Computing and Communication Technologies, ACCT, April(1), 108–112.

Artiges, A., Caron, M., Ekenel, H. K., Grm, K., & Struc, V. (2017). Strengths and Weaknesses of Deep Learning Models for Face Recognition Against Image Degradations. IET Biometrics, 7(1), 81–89.

Boyko, N., Basytiuk, O., & Shakhovska, N. (2018). Performance Evaluation and Comparison of Software for Face Recognition , based on Dlib and Opencv Library. 2018 IEEE Second International Conference on Data Stream Mining & Processing (DSMP), (AUG), 478–482.

Ding, C., & Tao, D. (2016). A Comprehensive Survey on Pose-Invariant Face Recognition. ACM Transactions on Intelligent Systems and Technology, Apr(7), 1–40.

Hart, J., Prikner, P., & Hartova, V. (2018). Influence of Face Lighting on the Reliability of Biometric Facial Readers. Agronomy Research, 16, 1025–1031.

Kemelmacher-Shlizerman, I., Seitz, S., Miller, D., & Brossard, E. (2015). The MegaFace Benchmark: 1 Million Faces for Recognition at Scale. (1), 4873–4882.

Mequanint, D. (2018). Introduction to Computer Science.

Motlagh, N. H., Bagaa, M., & Taleb, T. (2017). UAV-Based IoT Platform : A Crowd Surveillance Use Case. IEEE Communications Magazine, (February), 128–134.

Parkhi, O. M., Vedaldi, A., & Zisserman, A. (2015). Deep Face Recognition. Procedings of the British Machine Vision Conference 2015, (1), 1–12.

Pyo, K., Lee, D., Lee, D., Lim, H., Cho, H., & Kang, K. (2018). Research Trend Analysis for Construction Automation. International Symposium on AUtomation and Robotics in Construction, (Isarc), 1–6.

Shyam, R., & Singh, Y. N. (2015). Identifying Individuals Using Multimodal Face Recognition Techniques. Procedia Computer Science, 48(1), 666–672.

T, V. M., Furht, B., T, Z. O., & Korolija, N. (2016). Advances in High Performance Computing and Related Issues. 2016.

Taigman, Y., Yang, M., & Ranzato, M. A. A. (2014). Deepface: Closing the Gap to Human-Level Performance in Face Verification. Proc. CVPR, (1), 1701–1708.

Vinay, A., Shekhara, V. S., Rituparna, J., Aggrawal, T., Balasubramanya Murthy, K. N., & Natarajan, S. (2015). Cloud Based Big Data Analytics Framework for Face Recognition in Social Networks Using Machine Learning. Procedia Computer Science, 50(1), 623–630.

Wang, Z., Wang, G., Huang, B., Xiong, Z., Hong, Q., Wu, H., … Liang, J. (2020). Masked Face Recognition Dataset and Application. 1–3. Retrieved from


Article Metrics

Abstract view : 0 times
PDF - 0 times


  • There are currently no refbacks.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.