Skip to content

kyeong8/Web_based_Health_Monitoring_using_rPPG

Repository files navigation

Web Based Health Monitoring Using rPPG

2023년 1학기 캡스톤 설계 프로젝트

Web Based Health Monitoring Using rPPG: rPPG 기술을 활용한 웹 기반 건강 모니터링 서비스

Demo

Architecture

Usage

Requirements

  • Python 3.10+
  • Window or Ubuntu

Libaray

  • OpenCV 4.7.0
  • tensorflow(2.12.0)
  • uvicorn(0.22.0)
  • SQLAlchemy(2.0.15)
  • python-jose(3.3.0)
  • scikit-image(0.20.0)
  • python-multipart(0.0.6)

Installation

pip install fastapi
pip install "uvicorn[standard]"
pip install sqlalchemy
pip install alembic
pip install "pydantic[email]"
pip install "passlib[bcrypt]"
pip install python-multipart
pip install "python-jose[cryptography]"
pip install scikit-image
pip install opencv-python
pip install tensorflow

Database Initialization

ubuntu@rppg:~/projects$ cd rppg
ubuntu@rppg:~/projects/rppg$ alembic init migrations

alembic.ini 파일을 편집기로 열어 다음과 같이 수정
[/home/ubuntu/projects/rppg/alembic.ini]

(... 생략 ...)
sqlalchemy.url = sqlite:///./rppg.db
(... 생략 ...)

migrations 디렉터리의 env.py도 다음과 같이 수정
[/home/ubuntu/projects/rppg/migrations/env.py]

(... 생략 ...)

# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
import models
target_metadata = models.Base.metadata

(... 생략 ...)

아래 코드 실행 후 rppg.db 파일 생성 확인

ubuntu@rppg:~/projects/rppg$ alembic revision --autogenerate
ubuntu@rppg:~/projects/rppg$ alembic upgrade head

Excution

uvicorn main:app --reload --host=0.0.0.0

해당 프로젝트의 모든 rppg 관련 코드는 MTTS-CAN을 수정하여 완성하였음.
fastapi 관련 문서는 점프 투 FastAPI를 참고하였음.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors