一款当您姿势不良时会模糊屏幕的macOS应用程序。
A macOS app that blurs your screen when you slouch

原始链接: https://github.com/tldev/posturr

## Posturr:一款 macOS 姿势矫正应用 Posturr 是一款轻量级的 macOS 应用程序,旨在改善您的姿势。它利用您的 Mac 摄像头和 Apple 的 Vision 框架来实时监控您的身体。当检测到您弯腰驼背时,Posturr 会逐渐模糊您的屏幕,作为温和的视觉提醒,让您挺直身体——姿势改善后,模糊会立即消失。 主要功能包括多显示器支持、本地处理以保护隐私(无云端或追踪),以及最小的资源占用。安装过程包括下载、解压缩,以及由于缺乏代码签名而绕过 macOS Gatekeeper。 Posturr 通过追踪鼻子和肩膀的位置来分析姿势,并相应地调整模糊强度。它通过命令行界面控制,需要 macOS 13.0 (Ventura) 或更高版本,以及一个可用的摄像头和 Xcode 命令行工具。该应用是开源的(MIT 许可证),并欢迎贡献。

## Hacker News 上关于姿势应用的讨论 一款名为“Posturr”的 macOS 应用,在检测到用户驼背时会模糊屏幕,从而在 Hacker News 上引发了热烈讨论。该应用借助 Claude 等 LLM 的帮助,利用 Mac 的摄像头监控头部位置并调整屏幕清晰度。 许多人觉得这个概念很有趣,并且是技术的一种巧妙应用,但讨论很快深入到个人生产力习惯中。用户分享了截然不同的体验:有些人驼背时效率*最高*,而另一些人则需要挺直身体才能集中注意力。这场讨论强调了工作环境没有“一刀切”的解决方案。 有人对隐私(摄像头访问)和资源使用提出了担忧,但开发者通过改进和公证做出了回应。许多评论员赞扬 LLM 现在能够轻松实现快速应用开发,即使对于不熟悉原生平台的人也是如此。该帖子还涉及更广泛的话题,例如运动的重要性、符合人体工程学的设置以及类似的应用解决其他习惯的可能性。
相关文章

原文

A macOS app that blurs your screen when you slouch.

Posturr uses your Mac's camera and Apple's Vision framework to monitor your posture in real-time. When it detects that you're slouching, it progressively blurs your screen to remind you to sit up straight. Maintain good posture, and the blur clears instantly.

  • Real-time posture detection - Uses Apple's Vision framework for body pose and face tracking
  • Progressive screen blur - Gentle visual reminder that intensifies with worse posture
  • Multi-display support - Works across all connected monitors
  • Privacy-focused - All processing happens locally on your Mac
  • Lightweight - Runs as a background app with minimal resource usage
  • No account required - No signup, no cloud, no tracking
  1. Download the latest Posturr-vX.X.X.zip from the Releases page
  2. Unzip the downloaded file
  3. Drag Posturr.app to your Applications folder

Since Posturr is not signed with an Apple Developer certificate, macOS Gatekeeper will initially block it:

  1. Right-click (or Control-click) on Posturr.app
  2. Select "Open" from the context menu
  3. Click "Open" in the dialog that appears
  4. Grant camera access when prompted

You only need to do this once. After the first launch, you can open Posturr normally.

Posturr requires camera access to monitor your posture. When you first launch the app, macOS will ask for permission. Click "OK" to grant access.

If you accidentally denied permission, you can grant it later:

  1. Open System Settings > Privacy & Security > Camera
  2. Find Posturr and enable the toggle

Once launched, Posturr runs in the background and displays a brief "Claude Mode Active" notification. The app:

  • Continuously monitors your posture through the camera
  • Applies screen blur when poor posture is detected
  • Automatically clears the blur when you correct your posture
  • Press Escape anywhere to quit the app
  • Position your camera at eye level when possible
  • Ensure adequate lighting on your face
  • Sit at a consistent distance from your screen
  • The app works best when your shoulders are visible

Posturr uses Apple's Vision framework to detect body pose landmarks:

  1. Body Pose Detection: Tracks nose, shoulders, and their relative positions
  2. Face Detection Fallback: When full body isn't visible, tracks face position
  3. Posture Analysis: Measures the vertical distance between nose and shoulders
  4. Blur Response: Applies screen blur proportional to posture deviation

The screen blur uses macOS's private CoreGraphics API for efficient, system-level blur that covers all windows and displays.

  • macOS 13.0 (Ventura) or later
  • Xcode Command Line Tools (xcode-select --install)
git clone https://github.com/yourusername/posturr.git
cd posturr
./build.sh

The built app will be in build/Posturr.app.

# Standard build
./build.sh

# Build with release archive (.zip)
./build.sh --release
swiftc -O \
    -framework AppKit \
    -framework AVFoundation \
    -framework Vision \
    -framework CoreImage \
    -o Posturr \
    main.swift
  • No code signing: Requires manual Gatekeeper bypass on first launch
  • Camera dependency: Requires a working camera with adequate lighting
  • Detection accuracy: Works best with clear view of upper body/face
  • No preferences UI: Currently no graphical settings interface

Posturr exposes a file-based command interface for external control:

Command Description
capture Take a photo and analyze pose
blur <0-64> Set blur level manually
quit Exit the application

Write commands to /tmp/posturr-command. Responses appear in /tmp/posturr-response.

  • macOS 13.0 (Ventura) or later
  • Camera (built-in or external)
  • Approximately 10MB disk space

Posturr processes all video data locally on your Mac. No images or data are ever sent to external servers. The camera feed is used solely for posture detection and is never stored or transmitted.

MIT License - see LICENSE for details.

Contributions are welcome! Please feel free to submit issues and pull requests.

  • Built with Apple's Vision framework for body pose detection
  • Uses private CoreGraphics API for efficient screen blur
  • Inspired by the need for better posture during long coding sessions
联系我们 contact @ memedata.com