0% found this document useful (0 votes)
2 views

Image Code

The document outlines a Python code implementation using Tkinter for a Face Recognition Attendance System, featuring a GUI with buttons for various operations and a status label. It includes functions to display registered data and attendance logs in separate windows, utilizing Treeview and text widgets respectively. Additionally, it describes the handling of an Excel file for storing attendance records, including error management for file access issues.

Uploaded by

dhanvanshg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Image Code

The document outlines a Python code implementation using Tkinter for a Face Recognition Attendance System, featuring a GUI with buttons for various operations and a status label. It includes functions to display registered data and attendance logs in separate windows, utilizing Treeview and text widgets respectively. Additionally, it describes the handling of an Excel file for storing attendance records, including error management for file access issues.

Uploaded by

dhanvanshg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1.

Python code using Tkinter to create a GUI for a "Face Recognition Attendance System," including
buttons and a status label.

Output of the above code:

GUI with a school logo, title, buttons for operations (e.g., Start Face Recognition, Show
Attendance Log, Show Registered Students, Stop System), and a status message.
2.)

function show_registered_data() to open a new window titled "Registered Data" with a Treeview
widget that displays registered data in columns: "Name," "Class," and "Section."

Output of the above code :

A tabular display showing registered data with names, class details, and sections for different
individuals.
3.)

function show_attendance() to display an "Attendance Log" in a new Tkinter window, showing


the current date and attendance records in a read-only text widget, with details such as Name,
Class, Section, Attendance status, and Time

Output of the above code:

A textual attendance log listing names, classes, sections, and timestamps for when individuals
were marked as present.
4.)

The code checks if the Excel file 'Attendance Data File.xlsx' exists. If it does, the data is read into
a DataFrame using pandas. If not, a new DataFrame is created with columns: "Name," "Class,"
"Section," "Attendance 1," and "Time."

The code defines a function save_attendance_async() to update the 'Attendance Data File.xlsx'
by saving the DataFrame to the file using pandas' ExcelWriter. It handles file access errors with a
PermissionError message if the file is open elsewhere.

Output of the above code:

An Excel sheet displaying attendance records with columns for names, classes, sections, and
multiple timestamps for attendance logs.

You might also like