Posts

Showing posts with the label Real-time Projects

How I Built a Real-Time Face Detector in Python Without TensorFlow or Mediapipe

Image
  Demo : Click Video ðŸ‘‡ðŸ‘‡ðŸ‘‡ 📢 Features: Embed YouTube Short Include GitHub link (if public) Short write-up: Explain core logic and how Haar Cascade works SEO Tip: Use keywords like “Python face detection 2025”, “OpenCV tutorial real time” Code : import cv2 import tkinter as tk from tkinter import Label from PIL import Image, ImageTk # Haarcascade XML for face detection face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml") # Initialize webcam cap = cv2.VideoCapture(0) # Create GUI Window root = tk.Tk() root.title("Modern Face Detector - FuzzuTech") root.geometry("700x550") root.configure(bg="#1e1e1e") label = Label(root) label.pack() title = Label(root, text="Face Detector - No TensorFlow / Mediapipe", font=("Helvetica", 18), fg="white", bg="#1e1e1e") title.pack(pady=10) def detect_face():     ret, frame = cap.read()     if not ret:         return   ...