Code Monkey home page Code Monkey logo

calculatedistanceusinghomography's Introduction

Calculate distance of 2 points using Homography Transform

By: Fitra Rahmamuliani

This program made for Image Processing Homework.

This program made using Python3 with some Python3 function. Please make sure to run this program using Python3.

Assumption

Users will choose by themselves which paper is A4.

How to use the program

  1. Open your Terminal or Windows PowerShell
  2. Go to the folder of this program using cd
  3. Run the python using command python3 calculateDistance.py and press enter. Make sure your image is on the same folder as the program.
  4. Input your image name with the extension. For example DSC_0300s.jpg
  5. First, let's set the position of A4 paper in the image. See the instruction on the top left corner. Click TOP LEFT image of A4 paper
  6. Click TOP RIGHT image of A4 paper
  7. Click BOTTOM RIGHT image of A4 paper
  8. Click BOTTOM LEFT image of A4 paper
  9. Second, click the 1st point that you want to calculate the distance for. CLICK 1st point
  10. CLICK 2nd point
  11. Press q button to end choosing. type q to END
  12. The window will be closed and open a new window of Distance Result. You can see the line between 2 points and the number. Or you can check your terminal and see Distance: X mm
  13. Press anything to quit the windows.

calculatedistanceusinghomography's People

Contributors

fitrakun avatar

Watchers

James Cloos 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.