/saliency

A python command line tool to create Itty-Koch-Style saliency maps.

Primary LanguagePythonMIT LicenseMIT

saliency

A python command line tool to create Itty-Koch-Style saliency maps.

Requirements

  • Python 2 or 3
  • Opencv 2+

Command options

  • Find all the options by -h or --help
python saliency.py -h

How to use

  • For the input image

  • Simply specify the input/output directories
python saliency.py --inputDir [input_dir] --outputDir [output_dir]

  • You can also mark the maximum saliency in the output image
python saliency.py --inputDir [input_dir] --outputDir [output_dir] --markMaxima
  • Some recommendations for parameter tuning
    • Image size

Papers

  • A Model of Saliency-Based Visual Attention for Rapid Scene Analysis , Laurent Itti, Christof Koch, and Ernst Niebur, PAMI, 1998

Thanks

License

  • Released under the MIT license. See LICENSE for details.