Skip to content

3D construction of an object from a single 3-point perspective image. Single View Metrology

License

Notifications You must be signed in to change notification settings

aaryapatel007/single-view-metrology

Repository files navigation

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

About

3D construction of an object from a single 3-point perspective image. Single View Metrology

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published