Git Product home page Git Product logo

endo-loc's Introduction

endo-loc

This project seeks to enable the rough inside/outside-patient localization of an endoscope. At this stage the proposed feature vector is meant to be a HSV histogram of the incoming endoscope image stream.

This software is developed along the principles of test-driven development. This implies that the current abilities of the software can be deduced from the test_... methods in all tests_... .py files in the tests package.

Scripts

A typical workflow at the moment consist of running several of the scripts in the top directory. I recommend the following (assuming you labeled your videos with the Aegisub subtitle editor):

  • Convert your video(s) to a feature XML file by calling python convert_video_to_xml.py [path_to_video] for each video.
  • Convert your labels file(s) (.ass) to a labels list file (.csv) by calling python convert_labels_to_label_list.py [path_to_labels_file] [path_to_corresponding_feature_file].
  • Take a directory of feature XMLs and their corresponding label list CSVs and call python get_evaluation.py [--dir_eval] [--subsampling] [dir_train or path_to_classifier]. If [dir_eval] is omitted, cross validation is performed. The evaluation output of the learned classifier will be printed to standard output.
  • Learn and export a classifier from a directory of feature XMLs and their corresponding label list CSVs with python get_classifier.py [dir_train] [dir_eval] [path_to_classifier] [--C_value] [--gamma_value]. Grid search can be skipped by supplying C and gamma values.
  • Visualize your classifier by calling python display_class_live.py [path_to_video or camera_index or camera_IP_address] [path_to_classifier] [--skip_frames].

endo-loc's People

Contributors

jscheytt avatar

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.