0

I want program for distance and direction between two mouse clicks on screen uaing python is anyone will help me?

two clicks should capture coordinates (x,y) and can be used to find out distance using distance formula

14th Nov 2017, 8:43 AM
Pratik pawar
Pratik pawar - avatar
2 Answers
+ 2
if you are using opencv library, use set mouse callback function for the position of mouse click and then for the calculation of distance use the euclidean distance formula.
14th Nov 2017, 8:29 PM
Vijay
Vijay - avatar