Coder Social home page Coder Social logo

inpaint-object-remover's Introduction

Inpaint Object Remover

This is the implementation of the algorithm described in the paper "Region Filling and Object Removal by Exemplar-Based Image Inpainting" by A. Criminisi et al.

Setup

Requires python 3.5 or newer. You can download it here.

Linux and Mac OS X

Inside the project's directory run:

pip install -r requirements.txt

to install the dependencies.

Windows

Download NumPy and SciPy from here, being the number after cp your version of python. (e.g. if you have python 3.5 64 bits download numpy‑1.13.1+mkl‑cp35‑cp35m‑win_amd64.whl and scipy‑0.19.1‑cp35‑cp35m‑win_amd64.whl)

Then run pip install <path to downloaded file> for each file.

After this, inside the project's directory, run:

pip install -r requirements.txt

to install the other dependencies.

How to use

Inside the project's directory run:

python inpainter <path to image> <path to mask>

You can also pass the --plot-progress argument to watch the image being created. For example, use:

python inpainter resources/image1.jpg resources/mask1.jpg --plot-progress

to process image1 inside resources folder using mask1 while printing each result. I provided some images from the paper inside the resources folder.

Use python inpainter -h to show the available arguments.

inpaint-object-remover's People

Contributors

igorcmoura avatar mgw6 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.