How can I find the pixel location at the end of a V-shape object

How can I find the pixel location at the end of a V-shape object like the one below, I want to find the location of two ends of that V shape object to calculate their distance
WechatIMG12243!

Like the two red spots marked in this image image

Try the Harris corner detector