A Python library for face-aware frame tracking like Apple Center Stage
Project description
🎥 StageCam
AI-powered face-tracking camera framing for Python projects
🚀 Use Cases
StageCam is built for:
- 💻 Virtual meetings – Auto-center your face even if you move
- 🤖 Robotics/Embedded Vision – Add camera intelligence to your bots
- 🎬 Livestreams & Screen Recording – Look pro with automatic framing
- 🧠 Python Apps – Integrate real-time face tracking with ease
✨ Features
- 🧠 MediaPipe-based Face Detection (lightweight & accurate)
- 🎯 Smooth Pan & Zoom – No jerky motion
- 👥 Multi-face Adaptive Framing
- 🪞 Lateral Inversion – Just like standard webcams
- 🧩 Modular API – Import and customize as needed
📦 Installation
pip install git+https://github.com/K-Rutuparna1087/StageCam.git
Dependencies (auto-installed):
opencv-pythonmediapipenumpy
⚡ Quick Usage
import stagecam
stagecam.show()
Optional Parameters:
stagecam.show(
camera_index=0,
detection_confidence=0.6,
zoom_factor=2.5
)
🖼️ Compare: Original vs StageCam Feed
import cv2
import stagecam
cap = cv2.VideoCapture(0)
stagecam_feed = stagecam.get_stagecam_feed(camera_index=0)
while True:
ret, original = cap.read()
staged = stagecam_feed(original.copy())
combined = cv2.hconcat([original, staged])
cv2.imshow("Original (left) | StageCam (right)", combined)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
🔧 Build Your Own System
Import core components and customize:
from stagecam import FaceTracker, FrameTransformer
🛣️ Roadmap
- 📷 Virtual Webcam Output (via
v4l2loopback/ OBS) - 🖱️ GUI toggle controls
- 📦 PyPI publishing (
pip install stagecam) - 📱 Mobile-friendly version (future goal)
👤 Author
Made with ❤️ by K Rutuparna 🔧 Mechatronics Engineer | 🤖 Robotics + AI Vision Enthusiast 🌐 GitHub: K-Rutuparna1087
⚖️ License
MIT License – Free to use, modify, and distribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stagecam-0.1.0.tar.gz.
File metadata
- Download URL: stagecam-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57999890110ee1a19b6be9d2c5734df64e71d7bfc64a9f44655953740424324c
|
|
| MD5 |
5a9e57a10338a046ce5ea4747437332e
|
|
| BLAKE2b-256 |
1e9268ece1cb928dcdf056b4613ed445e0d4d6b8afec489bd03b55bb58c912f7
|
File details
Details for the file stagecam-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stagecam-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26c04ec8706ae70bea9ce568f8a933fb3e08672e2ab70670d2c9167cb5e96491
|
|
| MD5 |
1b2095bfa8993d99e7230c9c50b479be
|
|
| BLAKE2b-256 |
dc79de757d24acff7c5065770dc71401944a6c9fabd2b92592cfa81e287660b2
|