Skip to content

Course Project for CS766 - Computer Vision at UW-Madison [Spring 2020]

Notifications You must be signed in to change notification settings

thisisabhash/activity-recognition

Repository files navigation

Activity Phase Detection in Cholecystectomy Surgery Videos [Done as part of CS766 course at UW-Madison]

For more information and results, please check the project website - Website

This codebase is built upon the code present here - https://github.com/JayJayBinks1/DeepPhase

So, I would like to acknowledge and credit the user above for the code.

Instructions to run the code

  1. Download the dataset from http://camma.u-strasbg.fr/datasets
  2. Put all videos in a yourpath/cholec80/Data folder, where yourpath is a local path on your machine. This can be changed in config.py file with DATA_DIR value.

For example, all videos will have path like - yourpath/cholec80/Data/video01.mp4

Tool annotations will have path like - yourpath/cholec80/Data/video01-tool.txt

Phase annotations will have path like - yourpath/cholec80/Data/video01-phase.txt

Timestamps will have path like - yourpath/cholec80/Data/video01-timestamp.txt

  1. Run frame_extraction.py to generate frames from videos.
  2. Run tool_recognition.py for tool recognition.
  3. Run feature_extract.py for feature extraction.
  4. Run phase_recognition.py for phase recognition.

About

Course Project for CS766 - Computer Vision at UW-Madison [Spring 2020]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages