Face-Authenticated Digital Ballot System: A Webcam-Based Facial Recognition Framework for Secure Voter Registration, Biometric Authentication, Duplicate Vote Prevention and Election Result Management Using OpenCV, Flask and MongoDB

Authors

  • Ankitha A P
  • Kavitha A S
  • Ankitha B V
  • Apoorva H K
  • Bhagyalakshmi

Keywords:

Duplicate vote prevention, Electronic voting, Face detection, Face recognition, Flask, MongoDB, OpenCV, Voter authentication

Abstract

Voting is an essential part of a democratic system, and reliable voter authentication is important for maintaining the integrity of the voting process. Traditional voting methods rely on manual verification, which requires considerable time and human effort and offers limited protection against impersonation and repeated voting. This study presents the Face-Authenticated Digital Ballot System, a web-based prototype that uses facial recognition as an additional method of voter authentication. The proposed system allows voters to register their details and capture facial images using a webcam. During authentication, the captured face is processed and compared with the registered facial information to verify the voter’s identity. Faces are detected and aligned, converted to 512-dimensional ArcFace embeddings, and matched by cosine similarity, with a liveness check applied before matching. After successful verification, the voter can view the available candidates and cast a vote. The system maintains the voting status of each registered voter to prevent multiple voting attempts, encrypts each ballot and links the records in a SHA-256 hash chain, and includes an administrative component for managing candidate information and monitoring voting results. The prototype is developed using Python, Flask, OpenCV, and MongoDB. A protocol for evaluating performance using accuracy, false acceptance rate (FAR), and false rejection rate (FRR) is defined, and the security design is analysed against spoofing, duplicate-vote, tampering, and database-compromise threats. The study demonstrates how facial recognition can be integrated into an electronic voting workflow to provide automated voter verification and a more streamlined voting process.

References

A. K. Jain, K. Nandakumar, and A. Ross, “50 years of biometric research: Accomplishments, challenges, and opportunities,” Pattern Recognition Letters, vol. 79, pp. 80–105, Aug. 2016.

P. Viola and M. Jones, “Rapid object detection using a boosted cascade of simple features,” Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. CVPR 2001, Kauai, HI, USA, 2001.

P. N. Belhumeur, J. P. Hespanha and D. J. Kriegman, “Eigenfaces vs. Fisherfaces: recognition using class specific linear projection,” in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 19, no. 7, pp. 711–720, July 1997.

T. Ahonen, A. Hadid and M. Pietikainen, “Face description with local binary patterns: Application to face recognition,” in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 28, no. 12, pp. 2037–2041, Dec. 2006.

F. Schroff, D. Kalenichenko and J. Philbin, “FaceNet: A unified embedding for face recognition and clustering,” 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA, 2015, pp. 815–823.

K. Zhang, Z. Zhang, Z. Li and Y. Qiao, “Joint face detection and alignment using multitask cascaded convolutional networks,” in IEEE Signal Processing Letters, vol. 23, no. 10, pp. 1499–1503, Oct. 2016.

J. Deng, J. Guo, E. Ververas, I. Kotsia and S. Zafeiriou, “RetinaFace: Single-shot multi-level face localisation in the wild,” 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 2020, pp. 5202–5211.

J. Deng, J. Guo, N. Xue and S. Zafeiriou, “ArcFace: Additive angular margin loss for deep face recognition,” 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 2019, pp. 4685–4694.

M. Kim, A. K. Jain and X. Liu, “AdaFace: Quality adaptive margin for face recognition,” 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 2022, pp. 18729–18738.

M. Kandan, K. D. Devi, K. D. N. Sri, N. Ramya and N. K. Vamsi, “Smart voting system using face detection and recognition algorithms,” 2021 IEEE International Conference on Intelligent Systems, Smart and Green Technologies (ICISSGT), Visakhapatnam, India, 2021, pp. 202–206.

V. Laxmi Vashisht, H. Mohan and S. Prakash, “Smart voting system through face recognition,” 2022 4th International Conference on Advances in Computing, Communication Control and Networking (ICAC3N), Greater Noida, India, 2022, pp. 909–913.

U. Jaswanth, D. Surendiran Muthukumar, R. Abitha, P. Ganesh, N. Naveen and G. Kavitha, “KNN-powered online voting system to improve accuracy and transparency of election process,” 2025 International Conference on Multi-Agent Systems for Collaborative Intelligence (ICMSCI), Erode, India, 2025, pp. 678–683.

A. Parmar, S. Gada, T. Loke, Y. Jain, S. Pathak and S. Patil, “Secure E-voting system using blockchain technology and authentication via face recognition and mobile OTP,” 2021 12th International Conference on Computing Communication and Networking Technologies (ICCCNT), Kharagpur, India, 2021, pp. 1–5.

S. Das, S. A. Shamim and M. Hossain, “Secure voting system using anti-spoof face recognition and deep learning with encryption,” 2025 International Conference on Quantum Photonics, Artificial Intelligence, and Networking (QPAIN), Rangpur, Bangladesh, 2025, pp. 1–6.

ISO/IEC 19795-1:2021, Information Technology—Biometric Performance Testing and Reporting—Part 1: Principles and Framework, 2nd ed., May 2021.

Z. Yu, Y. Qin, X. Li, C. Zhao, Z. Lei and G. Zhao, “Deep learning for face anti-spoofing: A survey,” in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 5, pp. 5609–5631, 1 May 2023.

Government of India, The Digital Personal Data Protection Act, 2023, Act No. 22 of 2023, Aug. 11, 2023.

M. Wang and W. Deng, “Deep face recognition: A survey,” Neurocomputing, vol. 429, pp. 215–244, Mar. 2021.

P. Grother, M. Ngan, and K. Hanaoka, Face Recognition Vendor Test (FRVT), Part 3: Demographic Effects, NIST Interagency/Internal Rep. 8280, National Institute of Standards and Technology, Gaithersburg, MD, USA, Dec. 2019.

ISO/IEC 30107-3:2023, Information Technology—Biometric Presentation Attack Detection—Part 3: Testing and Reporting, 2nd ed., Jan. 2023.

Published

2026-12-01

How to Cite

Ankitha A P, Kavitha A S, Ankitha B V, Apoorva H K, & Bhagyalakshmi. (2026). Face-Authenticated Digital Ballot System: A Webcam-Based Facial Recognition Framework for Secure Voter Registration, Biometric Authentication, Duplicate Vote Prevention and Election Result Management Using OpenCV, Flask and MongoDB. Journal of Network Security Computer Networks, 12(3), 55–72. Retrieved from https://matjournals.net/engineering/index.php/JONSCN/article/view/4544

Issue

Section

Articles