Giter Site home page Giter Site logo

saliency_opencv's Introduction

saliency_opencv

Reusing the OpenCV's Saliency algorithms for research purpose

Directions to install OpenCV 3.1.0 with OpenCV_contrib modules

  • Do this step by step
  1. sudo apt-get install build-essential
  2. sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
  3. sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
  4. git clone https://github.com/Itseez/opencv.git
  5. git clone https://github.com/Itseez/opencv_contrib.git
  6. cd opencv
  7. mkdir release
  8. cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=source_directory/opencv_contrib/modules source_directory/opencv/
  9. make -j6
  10. sudo make install

Check the installation by typing the following command

pkg-config --modversion opencv

This should show the version of your openCV. Hopefully 3.1.0.

Lets try out the Saliency Example now. Clone this directory

  1. git clone https://github.com/surjithbs17/saliency_opencv.git
  2. git checkout master

Make the file using CMAKE

  1. cd saliency_opencv
  2. Run "cmake ."
  3. Run "make"
  4. Execute the code by typing "./saliency airplane.mp4 MOTION threshold_value"

Example commands:

  1. ./saliency DRONE-NET_TEST-10-29-16.mp4 STATIC 200

  2. ./saliency DRONE-NET_TEST-10-29-16.mp4 MOTION 200

This should show four outputs(Original Video frame, SaliencyMap(Spectral Residual and Motion saliency), binarymap(extracted from saliency map),thresholded binary map(Thresholded according to input arguments on SaliencyMap) and background subtracted(MOG).

Reference:

  1. http://embedonix.com/articles/image-processing/installing-opencv-3-1-0-on-ubuntu/

  2. http://www.samontab.com/web/saliency/

  3. http://docs.opencv.org/3.0-beta/modules/saliency/doc/saliency.html

  4. http://docs.opencv.org/3.1.0/d9/dcd/classcv_1_1saliency_1_1Saliency.html

saliency_opencv's People

Contributors

surjithbs17 avatar

Stargazers

Renaud Bouckenooghe 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.