Giter VIP home page Giter VIP logo

single-view-metrology's Introduction

Single-View-Metrology

3D construction of an object from a single 3-point perspective image. The homography and the projection matrices are calculated and are used to apply affine transformations to the image to obtain texture maps.

The algorithm is based on the paper Single View Metrology.

This project was done for the course CSE-544: Computer Vision offered by IIIT-D under the guidance of Dr. Saket Anand.

Dependencies:

  1. Python 3
  2. OpenCV
  3. Numpy
  4. Pandas
  5. Scipy

How to run:

  1. Clone the repository
  2. Make sure that you have downloaded the view3dscene software and have included it in your systems path.
  3. Run the following command in the parent directory:
./run.sh
  1. give the image path as input to the command. Example:
input_imgs/image1.jpg
  1. Select 7 corners from the input image while running the find_corners.py file.
  2. Then, select top left and bottom right corner of the object in order to crop the image while running the svm.py file.
  3. The output will be displayed in the view3dscene software.

Results:

Input Image:

Input Image

Output Image (3D model):

Output Image

single-view-metrology's People

Contributors

aaryapatel007 avatar

Stargazers

 avatar

Watchers

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