パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.0.0+0

heart_bpm

スマートフォンのカメラを使って、個々の血圧を簡単に記録できます。

AndroidiOSWeb
30日間ダウンロード
8
いいね数
58
Pub ポイント
150

パッケージをインストール

flutter pub add heart_bpm

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

heart_bpm パッケージは、スマートフォンのカメラのみを使用して個々の血圧値を記録できるようにします。カメラ映像から顔の色の微細な変化を分析することで、心拍数を推定し、心血管健康を非侵襲的にモニタリングする方法を提供します。シンプルさとアクセスのしやすさを重視して設計されており、Android、iOS、Web プラットフォーム上のヘルス関連アプリにシームレスに統合できます。このパッケージはコンピュータビジョン技術を活用してリアルタイムで脈拍の変動を検出するため、追加のハードウェアなしで個人のウェルネス追跡に便利なツールを提供します。

用途

  • 個人の心拍数モニタリング
  • 非侵襲的血圧推定
  • フィットネスとウェルネスアプリ
  • リモート健康診断
  • 日々の健康トラッキング

主な機能

  • カメラベースの脈拍検出
  • リアルタイム心拍数分析
  • クロスプラットフォーム対応(Android、iOS、Web)
  • Flutter とのシンプルな統合
  • 軽量で効率的な処理

適している対象

  • ヘルスアプリ開発者
  • フィットネス愛好家
  • テレヘルスアプリケーション
  • モバイルヘルス研究
  • 心血管健康を追跡している個人

注意事項

  • 正確性は照明や肌の色合いによって異なる場合があります
  • 安定したカメラ入力が必要です
  • 医療グレードの診断ツールではありません
  • 心拍数に限定され、直接的な血圧測定ではない
  • 信頼できる結果を得るためにはユーザーの協力が必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

heart_bpm

Widget to measure heart rate in beats per minute using the camera of smartphone.

Working principle

Covering the camera lens with the fingertip enables the camera to measure the subtle changes in skin tone. These are proportional to the changes in the blood flow through the arteries just below the skin of the fingertip. This is in-turn correlated to the heart beats. Hence, the variations in the skin tone can be approximated to the instances of heart beats. Measuring the time differences between the peaks provides Beats per Minute.

These values are not stable and hence, an exponential moving average filter is implemented. The smoothing factor α, can be controlled by the user from the calling widget.

Implementation

To access the camera, the module utilizes the camera package. Hence, the requirements to use this package have the same requirements.

Android

Minimum android SDK version: 21

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21
iOS

iOS 10.0 of higher is needed to use the camera plugin. If compiling for any version lower than 10.0 make sure to check the iOS version before using the camera plugin. For example, using the device_info plugin.

Add two rows to the file ios/Runner/Info.plist:

  • one with the key Privacy - Camera Usage Description and a usage description.
  • and one with the key Privacy - Microphone Usage Description and a usage description.

Or in text format add the key:

<key>NSCameraUsageDescription</key>
<string>Heart BPM plugin would like to use camera to measure your heart rate.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Can I use the mic please?</string>

The microphone key is required though the feature is not being used and no audio is enabled in the implementation.

Getting Started

The module can be used simply by accessing it as a widget.

  1. Import the module:

    import 'package:heart_bpm/heart_bpm.dart';
    
  2. Access the widget as simply as:

    /// list to store raw values in
    List<SensorValue> data = [];
    
    /// variable to store measured BPM value
    int bpmValue;
    
    @override
    Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
            title: Text('Heart BPM Demo'),
        ),
        body: Column(
        children: [
            isBPMEnabled ? HeartBPMDialog(
                    context: context,
                    onRawData: (value) {
                        setState(() {
                            // add raw data points to the list
                            // with a maximum length of 100
                            if (data.length == 100)
                                data.removeAt(0);
                            data.add(value);
                        });
                    },
                    onBPM: (value) => setState(() {
                        bpmValue = value;
                    }),
                )
              : SizedBox(),
          Center(
            child: ElevatedButton.icon(
                icon: Icon(Icons.favorite_rounded),
                label: Text(isBPMEnabled
                    ? "Stop measurement" : "Measure BPM"),
                onPressed: () => setState(() =>
                    isBPMEnabled = !isBPMEnabled
                ),
            ),
          ),
        ],
      ),
    );
    

Contributors

Contributor Profile Picture
Karl Mathuthu Karl Mathuthu
Krishna Vedala Krishna Vedala

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。