Login Camera Logger

A Python webcam logging project that captures timestamped images, creates log files, supports EXE builds, and demonstrates automation, computer vision, and Windows deployment.

📷 What Is Login Camera Logger?

Login Camera Logger is a Python project designed to automatically capture webcam images and create activity logs. The application demonstrates:

• Webcam Integration
• Image Processing
• Timestamp Generation
• File Management
• Windows Automation
• EXE Packaging
• Startup Integration

⚡ Main Highlights

📷 Automatic Webcam Capture

🕒 Timestamped Filenames

📝 Automatic Log Creation

📁 Custom Save Folder

🚀 EXE Support

💻 Windows Compatible

⚡ Lightweight Design

🎯 Purpose

The project was built to learn how Python can interact with hardware, manage files, and automate tasks. It combines multiple Python concepts into a single practical application.

📷 Camera System

Automatic webcam initialization.

Multiple camera reads for improved image quality.

JPG image export.

Fast capture process.

📝 Logging System

Automatically creates a log file.

Records timestamp information.

Records username information.

Creates a history of captures.

⚡ Automation Features

Automatic startup capture.

Folder creation.

Background monitoring.

Automatic file naming.

📁 Storage System

Custom save locations.

Automatic folder generation.

Organized file structure.

Easy backup support.

🚀 Deployment Features

Standalone EXE creation.

Startup folder support.

Portable deployment.

Easy installation.

📸 Screenshot Placeholder

Replace this section with screenshots of your application.

📝 Example Log Output


[2026-08-20 15:30:45]

User: Ali

Photo:
login_2026-08-20_15-30-45.jpg

📷 Example Image

Captured images are saved using timestamps.


login_2026-08-20_15-30-45.jpg

📥 Install Python

Install Python 3.8 or newer.

📦 Install Dependencies


pip install opencv-python

▶ Run Application


python login_logger.py

🔍 Verify Installation


python --version

pip show opencv-python

📋 Requirements

Windows 10/11

Python 3.8+

Webcam

OpenCV

50MB Free Storage

📁 Save Folder

Choose where images and logs are stored.


SAVE_FOLDER = os.path.join(
    os.environ["USERPROFILE"],
    "Documents",
    "LoginCaptures"
)

📝 Log File Name


LOG_FILE = os.path.join(
    SAVE_FOLDER,
    "login_log.txt"
)

📷 Image Naming


image_name =
f"login_{timestamp}.jpg"

Example:


login_2026-08-20_15-30-45.jpg

🎥 Camera Resolution


cap.set(
cv2.CAP_PROP_FRAME_WIDTH,
1280
)

cap.set(
cv2.CAP_PROP_FRAME_HEIGHT,
720
)

⚙ Complete Workflow

1️⃣ Program Starts

2️⃣ Webcam Initializes

3️⃣ Username Detected

4️⃣ Timestamp Generated

5️⃣ Image Captured

6️⃣ Image Saved

7️⃣ Log Updated

8️⃣ Monitoring Continues

📷 Image Capture Process

The application opens the webcam, waits briefly for stabilization, captures several frames, then saves the final image.

📝 Logging Process


[2026-08-20 15:30:45]

User: Ali

Photo:
login_2026-08-20_15-30-45.jpg

📂 Generated Files


LoginCaptures/

├── login_log.txt

├── login_2026-08-20.jpg

├── login_2026-08-21.jpg

└── login_2026-08-22.jpg

🚀 Startup Support

Login Camera Logger can automatically launch when Windows starts.

📦 Build EXE


pip install pyinstaller

pyinstaller --onefile login_logger.py

📁 Open Startup Folder


Win + R

shell:startup

🔗 Create Shortcut

Create a shortcut to:


login_logger.exe

Move the shortcut into the Startup folder.

⚡ Startup Flow


Windows Starts

↓

User Logs In

↓

Startup Folder Runs

↓

Login Logger Starts

↓

Camera Initializes

↓

Monitoring Begins

💻 Source Code

Download the source code from GitHub.

Open GitHub

🌐 Project Website

View the official project page.

Open Website

📦 EXE Download

Add your EXE download link here.

Download EXE

🛣 Version 1.1

🔄 Better Wake Detection

🔄 Improved Logging

🔄 Cleaner Output

🛣 Version 1.2

🔄 Multiple Camera Support

🔄 Camera Selection Menu

🔄 Higher Resolution Options

🛣 Version 2.0

🔄 Settings Interface

🔄 Capture History Viewer

🔄 Export Logs

🔄 Statistics Dashboard

🔄 Theme Support

🚀 Version 1.0

Initial Release

✅ Webcam Capture
✅ Timestamped Images
✅ Automatic Logging
✅ Custom Save Folder
✅ EXE Support
✅ Startup Integration

📅 Future Updates

Version 1.1

🔄 Better Wake Detection
🔄 Cleaner Logs
🔄 Faster Startup
🔄 Improved Stability

🐍 Python

The core programming language used for application logic, automation, file handling, and system interaction.

📷 OpenCV

Provides webcam access, image capture, frame processing, and image saving capabilities.

📅 Datetime Module

Used to generate timestamps for filenames and log entries.

📂 OS Module

Handles folder creation, path management, and file operations.

👤 Getpass

Retrieves the current Windows username.

📦 PyInstaller

Converts Python code into a standalone executable.

❓ What does Login Camera Logger do?

Captures webcam photos, saves timestamped images, and creates log entries.

❓ Does it require internet?

No. Everything runs locally on your computer.

❓ Can I change the save folder?

Yes. Edit the SAVE_FOLDER variable.

❓ Can I create an EXE?

Yes. Use PyInstaller.


pyinstaller --onefile login_logger.py

❓ Does it support multiple cameras?

Currently it uses the default webcam.

❓ Does it work offline?

Yes. No internet connection is required.

❓ Is data uploaded anywhere?

No. Images and logs remain on your computer.

👨‍💻 Developer

ALI BIN GULSHAD AHAMMED

Founder of PHINCOM

Creator of PHINCOM STUDIOS

🌐 Official Links

Portfolio Website

https://ali-bin-gulshad-ahammed.pages.dev

Project Website

https://ali-bin-gulshad-ahammed.pages.dev/loginlogger.html

YouTube

https://www.youtube.com/@PHINCOM

PHINCOM STUDIOS

https://www.youtube.com/@phincomsudios

⚡ Interests

🤖 Artificial Intelligence

🎮 Game Development

💻 Programming

📡 Electronics

🕶 VR Technology