Coder Social home page Coder Social logo

seam-carving's Introduction

Seam-Carving

Python implementation of Content-Aware Image Resizing.
Uses a dynamic programming approach to find the minimum energy "seam" to "carve" out from the image.


Run the script

To view command line options and default arguments:

foo@bar:~/Seam-Carving$ python src/carver.py -h

To run the script on a test image:
Ensure that the test image is in the "images" dir. The results dir will be automatically created if it doesn't already exist and all the results will be saved here. A gif of the entire process will be saved in the current directory as well.

foo@bar:~/Seam-Carving$ python src/carver.py --image_name castle --num_seams 100 --filter_type laplace

TODO:

  • reduce I/O operations during seam overlaying operation, should ideally reduce compute time
  • add gif, current gif too big
  • add option to remove horizontal seams
  • instead of asking number of seams from user, ask required image dimensions and resize accordingly

seam-carving's People

Contributors

utkarsh87 avatar

Watchers

 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.