Мне нужны те же функции, что и приложение Instant Heart Rate.
Основной процесс требует от пользователя:
- Нанесите кончик указательного пальца на объектив камеры.
- Нанесите равномерное давление и накройте весь объектив.
- Держите его устойчивым в течение 10 секунд и получите частоту сердечных сокращений.
Это можно сделать, включив вспышку и наблюдайте за изменением света, когда кровь перемещается по указательному пальцу.
Как я могу получить данные уровня света из видеозахвата? Где я должен искать это?
Я просмотрел класс AVCaptureDevice
, но не нашел ничего полезного.
Я также нашел AVCaptureDeviceSubjectAreaDidChangeNotification
, было бы полезно?