A Flutter application that integrates with Frame smart glasses to automatically capture photos when your heart rate exceeds a configurable threshold. Perfect for capturing those high-intensity moments during workouts, exciting events, or any situation where your heart rate spikes.
- Bluetooth Heart Rate Strap Support: Compatible with popular heart rate monitors (Garmin, Polar, Wahoo, etc.)
- Real-time Heart Rate Display: Live BPM monitoring with data quality indicators
- Configurable Threshold: Set custom heart rate thresholds (60-200 BPM)
- Auto-capture: Automatically takes photos when heart rate exceeds threshold
- Data Quality Monitoring: Track connection stability and data accuracy
- Seamless Connection: Auto-connects to Frame smart glasses
- Manual & Auto Capture: Double-tap gesture or automatic heart rate triggered capture
- Live Preview: Real-time display on Frame glasses
- Battery Monitoring: Track Frame device battery status
- Instant Gallery: View captured photos with metadata
- Detailed Metadata: Timestamp, exposure settings, and capture context
- Easy Sharing: Share photos with metadata via system share sheet
- JPEG Output: High-quality image storage and sharing
Note: Add screenshots of the app interface, Frame glasses, and heart rate monitoring in action
- Flutter SDK (3.0.6 or higher)
- Frame smart glasses
- Bluetooth heart rate monitor strap
- Android/iOS device with Bluetooth LE support
-
Clone the repository
git clone https://github.com/yourusername/heartbeat-smart-glass.git cd heartbeat-smart-glass
-
Install Flutter dependencies
cd flutter_app flutter pub get
-
Configure Frame SDK
- Ensure your Frame glasses are paired and connected
- Follow Frame SDK documentation for device setup
-
Run the application
flutter run
The app uses the following key dependencies:
simple_frame_app: ^7.1.0
- Frame smart glass SDKflutter_blue_plus: ^1.35.5
- Bluetooth Low Energy communicationframe_msg: ^2.0.0
- Frame messaging protocolshare_plus: ^11.0.0
- System sharing capabilitieslogging: ^1.3.0
- Logging frameworkimage: ^4.5.4
- Image processing
-
Put your heart rate strap in pairing mode
- Turn on your Bluetooth heart rate monitor
- Ensure it's in pairing/discoverable mode
-
Connect through the app
- Open the app and tap the heart icon in the top-right
- Or use the Settings drawer → Heart Rate Settings → Connect Heart Rate Strap
- Select your device from the list
-
Configure threshold
- Go to Settings → Heart Rate Settings → Configure Threshold
- Set your desired BPM threshold (default: 100 BPM)
- Enable monitoring to activate auto-capture
- Pair your Frame glasses with your phone via Bluetooth
- Launch the app - it will automatically detect and connect to Frame
- Follow on-screen instructions for initial setup
- Start the app - it will automatically connect to Frame glasses
- Connect heart rate monitor using the heart icon or settings
- Enable monitoring to activate automatic photo capture
- Set your threshold based on your target heart rate zone
- Automatic: Photos are captured when heart rate exceeds threshold
- Manual: Use the camera button in the app
- Gesture: Double-tap on Frame glasses
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Frame team for the smart glasses SDK
- Simple_frame_app by CitizenOneX
Note: This app requires physical hardware (Frame smart glasses and Bluetooth heart rate monitor) to function fully. Demo mode may be available for development purposes.