I am pretty new to using opencv, and i want to know how can find the distance of this max gap(the highlighted red triangle region). I was thinking of finding the edge first but not sure how to calculate the distance. Like the image i attached, i want to first highlight the portion and then find the max distance(purple line drawn on the last image). The output should be the image with highlight and calculated distance output.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…