Skip to content

Russellwzr/image-inpainting-fe

Repository files navigation

Image Inpainting Front-End

Use the most advanced AI model to help you deblur your picture and flexibly remove any unwanted objects in seconds.

demo_video.mp4

Features

  • Image upload and download
  • Clear canvas
  • Undo and redo of canvas interactive operations
undo_redo.mp4
  • Viewport transformation: zoom in/out (mouse wheel) & pan (alt + left click)
  • Eraser with variable thickness
  • Drawing and editing of cardinal spline polygons
  • Store history of results
  • Comparison of before and after results
  • Reduce react component re-rendering through memo, useMemo, useCallback etc.
  • Inpaint: remove any unwanted objects from images
  • Deblur: eliminate blurring artifacts and improve image clarity

Quick Start

This project was bootstrapped with Create React App.

npm install

Install packages that the project depends on.

npm start

Run the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.\

Where the related APIs are called

Inpaint

  • Front-End: src/pages/editPage/ToolBar.jsx/handleInpaint
  • Back-End: app.py/inpaint

Deblur

  • Front-End: src/pages/editPage/ToolBar.jsx/handleDeblur
  • Back-End: app.py/deblur