📜  在opencv python中查找两点之间的距离-TypeScript代码示例

📅  最后修改于: 2022-03-11 14:48:31.388000             🧑  作者: Mango

代码示例3
import math.
def calculateDistance(x1,y1,x2,y2):
  dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
  return dist
print calculateDistance(x1, y1, x2, y2)