GithubHelp home page GithubHelp logo

davidenardone / pysmrs Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 6.0 61.39 MB

An unsupervised compressed-sensing technique for fundamental objects selection

License: GNU Affero General Public License v3.0

Python 100.00%
video-summarization sparse-coding compressed-sensing compressive-sensing lasso optimization-algorithms feature-selection

pysmrs's Introduction

PySMRS

An unsupervised compressed-sensing technique for fundamental objects selection

Introduction

This is a python implementation of (Ehsan Elhamifar et. al). They consider the problem of finding a few representatives for a dataset, (i.e., a subset of data points that efficiently describes the entire dataset). They experiment this technique on data such as video (Video Summarization) but other type of data may be considered for some experiment.

Video summarization is one of the encouraging methods for effective comprehension of video content by selecting informative frames of the video. The aim is to produce a summary of the video which is interesting to the user and representing the whole video.

In this project the proposed method exploits a Compressive Sensing method (LASSO) for selecting representative frames of the video.

Requirements

  • Python 2.7 or greater
  • Opencv (facoltative)

Usage

Runn the following command to clone the master repository into a target directory:

git clone https://github.com/DavideNardone/PySMRS.git <target>

then...run one of the following demo:

python demo.py (naive example)

python demo_video.py (computationally expensive)

Example

The following summaries have been produced by setting the threshold thrP to 0.7, 06 and 0.5, respectively. Alt Text Alt Text Alt Text

The original video Society Raffles.mp4 can be found in the dataset folder.

Authors

Davide Nardone, University of Naples Parthenope, Science and Techonlogies Departement,
Msc Applied Computer Science
https://www.linkedin.com/in/davide-nardone-127428102

Contacts

For any kind of problem, questions, ideas or suggestions, please don't esitate to contact me at:

References

[Ehsan Elhamifar et. al]: "See all by looking at a few: Sparse modeling for finding representative objects." Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on. IEEE, 2012.

pysmrs's People

Contributors

davidenardone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pysmrs's Issues

Why MemoryError?

Hello!When I use the demo_video.py ,it always tell me "MemoryError". Can you help me?

sInd, repInd, C = smrs.smrs()
self.C,_ = self.almLasso_mat_fun()
mu1p = alpha1 * 1/self.computeLambda()
T = np.linalg.norm(np.dot(self.data.T, tmp_mat),axis=1)
MemoryError

How to deal with the gait recognition image sequence

Excuse me, I use this SMRS in my gait recognition (binary image) image sequence, the effect is not ideal, I would like to ask which parameters can be modified to improve, or other methods can be used for special frame selection

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.