Perspective Correction

Convert the following multi-planer images into a single-plane image (Perspective correction).

Notes:

  • Use C++ and OpenCV (preferably) to accomplish the following task.
  • The Square Box that contains the QR code has to be corrected into a single plane.
  • If your program is given a Single planer image it should return it without any changes.
  • No Machine Learning to be used.

DO NOT USE ANY PROPERITERY ALGORITHS OR LIBRARY.

Share your code in a Github or public repository.

Curved Perspective Image

Two Planer Image