Skip to content

Face Recognition using OpenCV, Python, Dlib, and Google Sheets API as databases for implementing Smart City Concept (Smart Governance)

License

Notifications You must be signed in to change notification settings

UFTHaq/Face-Recognition-for-Access-to-Public-Services-with-Python-OpenCV

Repository files navigation

GitHub last commit GitHub top language PyCharm GitHub code size in bytes GitHub Repo stars

Face-Recognition-for-Access-to-Public-Services

Face Recognition using OpenCV, Python, Dlib, and Google Sheets API as databases for implementing Smart City Concept (Smart Governance)

If you consider this page is useful, please leave a star

I. Smart City

In a smart city, smart governance plays a pivotal role in creating a more connected and efficient urban environment. Smart governance involves harnessing technology and data to transform the way cities are managed and services are delivered. Through the integration of digital platforms, data analytics, and automation, local authorities can make informed decisions, optimize resource allocation, and enhance public services.

II. Method

Tools used : Python, dlib, library face-recognition, opencv, google sheets api

You can check this repo of face-recognition: https://github.com/ageitgey/face_recognition

III. Testing

Test 1

Recognizing Success Recognizing Unsuccess

The experiment results indicate that in the absence of obstacles on the face, the system can correctly recognize faces, provided there is adequate lighting. However, when an obstacle in the form of a mask is introduced, the system will not recognize the face at all.

Test 2

Recognizing Success Recognizing Unsuccess

The second set of data indicates that, in the absence of obstacles on the face, the system can correctly recognize faces. However, when wearing glasses, the system recognizes with an incorrect name. This is due to the image data being encoded without glasses, resulting in misidentification because the glasses cause a shift in facial landmark points during encoding.

After conducting tests and obtaining data results, errors persist in face recognition when obstacles such as masks or glasses are present. Therefore, for users wearing glasses, it is recommended to remove them both during encoding and face recognition detection. Additionally, if two people are positioned side by side in front of the camera or webcam, only one person will be detected. The recognition distance also depends on the size of the lens used on the camera. In this case, a Xiaov webcam is used with a detection range not exceeding 85 cm from the webcam's position.

IV. Conclusion

After conducting tests and receiving data results, it was found that there are still errors in the recognition process when the face is obstructed by obstacles such as masks or glasses. Nevertheless, the accuracy of the data has been improved through a validation method involving data comparison 10 times to ensure consistency in face detection. Thanks to this approach, the system has been successfully implemented as an application simulating the utilization of face recognition technology. This application is designed to access public facilities managed by the government, aligning with the goal of developing the Smart City concept. Therefore, this application can be considered as a preliminary step in optimizing face recognition technology to support the efficiency of public services and advance the idea of a Smart City.

V. Evaluation

From this created Face Recognition project, an evaluation of the issues that slightly hampers the automation process of encoding and recognition is the facial photo data that does not originate from the actual database. Thus, when preprocessing data is performed by manually assigning names, it becomes a rather cumbersome issue, especially when faces to be registered in the system exceed thousands of people. Therefore, a suggestion that can be given is to use a more proper Database Management System (DBMS), such as MySQL, PostgreSQL, Oracle, etc., consisting of data such as names, numbers, and photos. This would enable better, structured, and efficient facial encoding

VI. Reference

If you consider this page is useful, please leave a star

About

Face Recognition using OpenCV, Python, Dlib, and Google Sheets API as databases for implementing Smart City Concept (Smart Governance)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages