GithubHelp home page GithubHelp logo

automatic-action-annotation's Introduction

Automatic-Action-Annotation

This folder contains demo code for our Journal of Computer Vision and Image Understanding (CVIU) paper: “Automatic Action Annotation using Weakly Labeled Videos".

Since our code has several components, we have included separate files for each component; some of them can be run side by side. Please follow the following steps to run code files

  1. Use "Script_Saliency image.m" to compute Saliency in each frame of the video. To compute Saliency, please code available at: http://www.vision.caltech.edu/~harel/share/gbvs.php (Section 3.2 of the paper)
  2. Use "Calculate_opticalflow_flowMask.m" to compute optical_flow Mask in each frame of the video. (Section 3.2 of the paper)
  3. Use "Calculate_3DMRF_MotionSaliency.m" to compute smoothed motion saliency in each frame of the video (Section 3.2 of the paper)
  4. Compute Action proposal in each video using code here: https://github.com/jvgemert/apt (Section 3.1 of the paper)
  5. Use "Calculate_Motion_Score_CV16IA.m" to compute motion score for each proposal in the video. (Section 3.2 of the paper)
  6. Compute Improved dense Trajectory features in each video using code here: http://lear.inrialpes.fr/~wang/improved_trajectories (Section 3.3 of the paper)
  7. Compute Bag of Words representation of each of top ranked proposal. You can use code "Script_Kmeans_CodeBook.m" to make codebook and "Proposal_Histogram_SPM.m" to make histogram of each proposal. For this purpose, you can also use Online available codes (e.g., vlfeat).(Section 3.3 of the paper)
  8. Compute distance between histograms across different videos of the same action, use "Compute_Distance_Matrices." (Section 3.3 of the paper) 9.***
  9. Use "Compute_ProposalClus_forHung.m" to cluster features within each action proposal.(Section 3.3 of the paper)
  10. Use "Compute_Distance_Hung.m" to do Bipartite matching and find the distance between proposals between different video.(Section 3.3 of the paper)
  11. Use "Compute_Shape_Similarity.m" to compute shape matching between different proposal shapes.(Section 3.3 of the paper)
  12. Use "Compute_Location_Pairwise_Similarity.m" to compute location and temporal length between different proposal shapes.(Section 3.3 of the paper)
  13. Use "GMCP_S" to get the final Top ranked proposal (Annotation).(Section 3.4 of the paper)

We are still updating the code.

In case, you find some bug, could not understand any part of the code, and other any comments, please drop me an email at [email protected].

If you find this code useful in your research, please cite the following paper:

@article{SULTANI2017, title = "Automatic action annotation in weakly labeled videos", journal = "Computer Vision and Image Understanding", volume = "", number = "", pages = "", year = "2017", note = "", issn = "1077-3142", doi = "http://dx.doi.org/10.1016/j.cviu.2017.05.005", url = "http://www.sciencedirect.com/science/article/pii/S1077314217300796", author = "Waqas Sultani and Mubarak Shah", keywords = "Weakly supervised", keywords = "Action annotation", keywords = "Generalized maximum clique graph" }

Thank you!

automatic-action-annotation's People

Contributors

waqassultani avatar

Stargazers

 avatar Roman Hossain Shaon avatar Nikolaos Dionelis avatar  avatar Phu Nguyen avatar

Watchers

James Cloos avatar  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.