banctilrobitaille / MedicalAR-Movement-Detection

Patient movements detection prototype

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patient movement detection prototype

This project has been developped as part of the Medical augmented reality (IN2293) class at TUM (Technische Universität München). The project consists of a patient movement detector prototype. Given a set of images, the goal was to detect any movement of the object of interest, in that case the patient's arm. The UI had to inform the surgeon that the patient's arm had moved and the degree and localisation of that said movement. To do that, a segmentation using HSV skin's color range had been done, following by some morphological operations. The resulting mask was used as input for the optical flow algorithm. That algorithm gives the movement vectors and magnitudes that were colored and added to the original images.

Patient movement density

The goal of the detector was to automatically detect patient's movement during a fake arm surgery. To do so, images of the patient were analyse using OpenCV. First, a binary mask of the patient's arm was created. Then, the mask was applied to the image and the movement density was estimated.

Movement detection from patient's image

The movement amplitude and angle is applied to the original image in order to intuitively visualize the movement of the patient. The computation of the movement is done using OpenCV Dense Optical Flow Algorithm

How to contribute ?

  • Create a branch by feature and/or bug fix
  • Get the code
  • Commit and push
  • Create a pull request

Branch naming

Feature branch

feature/ [Short feature description] [Issue number]

Bug branch

fix/ [Short fix description] [Issue number]

Commits syntax:

Adding code:

+ Added [Short Description] [Issue Number]

Deleting code:

- Deleted [Short Description] [Issue Number]

Modifying code:

* Changed [Short Description] [Issue Number]

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

About

Patient movements detection prototype


Languages

Language:Python 100.0%