Code Monkey home page Code Monkey logo

wuxiaotu / heartrate Goto Github PK

View Code? Open in Web Editor NEW
247.0 247.0 67.0 58 KB

2016年去了一家做互联网医疗的一家公司当时技术老大给我出的一道题就是怎么样能通过手机来获取心率值,当天回去花了1天半的时间写了一个demo出来,后来没有去那家公司,前两天整理电脑的时候,偶然发现这个demo还在,就共享出来给需要的人吧,相信会有人用到的,原理实现:把手指贴放在手机背面摄像头的位置,通过手机的摄像头获取手指里面毛细血管的波动来获取心率值,相对来说还是比较准确的。

Objective-C 88.01% Objective-C++ 11.99%

heartrate's People

Contributors

wuxiaotu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

heartrate's Issues

心率采集

我在17年开始接接触心电采集, 从零开始做了半年蓝牙开发, 接触并了解了心电采集方面的一丢丢

我们的实现方案是通过佩戴ECG, 经过BLE传入到手机

在17年底了解了针对手机摄像头采集分析心率的原理: 通过摄像头测量血管光反应量来计算心率, 而我们设备采集的方式是传统医疗所使用的人体电势差的方式.

后来又了解到了苹果AppleWatch的心率采集:

  • 光体积描记法
    使用绿色 LED 灯配合对光敏感的感光器,可以检测任意时间点流经手腕的血液流量,这样的好处是测量的数据比较准确,但缺点是比较耗电
  • 红外线扫描法
    借由红外光对手腕血管的透射和反射能力来测量心率。虽然它很省电,但如果遇到了光信号弱的情况,红外线就没有办法测量出心率的数据,这时 Apple Watch 在后台就会切换至光体积描记法完成这一次的心率测量。

「光体积描记法」因为比较耗电,所以在默认情况下它是仅在使用 Workout App 的情况下开启的,「红外线扫描法」则是在后台测量时使用的,所以在步行、跑步、赛艇等状态下,它可能就会停止自动记录数据。但只要你在运动中停了下来,过一会 Apple Watch 还是会继续使用红外线帮你自动记录数据的。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.