Skip to main content

smart-study

Webcam-based study distraction monitor. It watches for prolonged eye closure, a missing/covered face, and cell phones, then displays a warning and plays an alert.

Install

Python 3.11 is recommended on Windows. The computer needs a webcam and audio output.

python -m pip install smart-study

Use as a Python module

from smart_study import study

study()  # Uses camera 0; press Q in the video window to stop.

Choose another camera by passing its index:

study(camera_index=1)

Importing smart_study does not start the webcam. The monitor starts only when study() is called.

Run from a source checkout

python -m pip install -e .
python app.py

The distribution includes the YOLO model and alert audio assets. Installation is relatively large because the computer-vision dependencies include PyTorch through Ultralytics. Python versions below 3.13 are currently declared because MediaPipe and the selected dependency set may not be available together on newer Python versions.

Build and upload to PyPI

Update the version in pyproject.toml for each release, then:

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

PyPI distribution name: smart-study
Python import name: smart_study

Metadata

Release files for smart-study 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smart-study 0.1.0
File Size Uploaded Provenance Actions
smart_study-0.1.0.tar.gz 6.5 MB Without provenance Details for smart_study-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smart-study 0.1.0
File Interpreter ABI Platform Actions
smart_study-0.1.0-py3-none-any.whl Python 3 none any Details for smart_study-0.1.0-py3-none-any.whl

Total release size: 13.0 MB

Release files / smart_study-0.1.0.tar.gz

Download URL smart_study-0.1.0.tar.gz
Size 6.5 MB
Tags Source
SHA-256 checksum
How to use checksums
d39997dbc4c358869d7f95d5498bf010cdf03f9a04a0cdecc0da01b3a8a37af9
BLAKE2b-256 checksum
How to use checksums
10f5df290879d63d7d40724624b6e22bc68ccd989956a56bd82b29f8e3ea5022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.8

Release files / smart_study-0.1.0-py3-none-any.whl

Download URL smart_study-0.1.0-py3-none-any.whl
Size 6.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b142c74dbf7889d6157d737ff1bb0404924d8b49ecc9376b7f766830a1e0c62d
BLAKE2b-256 checksum
How to use checksums
44a32c2cc953376ae31bf15142ae90a6e3998a2a98f65f04a83fe6b687771a9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.8

Security for smart-study 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page