# How to detect the equilateral triangle from the given triangle?

**URL:** <https://forum.opencv.org/t/how-to-detect-the-equilateral-triangle-from-the-given-triangle/13317>\
**Category:** Python\
**Tags:** detection\
**Created:** [May 26, 2023, 9:36am UTC](https://forum.opencv.org/t/how-to-detect-the-equilateral-triangle-from-the-given-triangle/13317 "2023-05-26T09:36:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hihihihi](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@hihihihi](https://forum.opencv.org/u/hihihihi)\
**Post date:** [May 26, 2023, 9:36am UTC](https://forum.opencv.org/t/how-to-detect-the-equilateral-triangle-from-the-given-triangle/13317/1 "2023-05-26T09:36:01Z")

</div>

I’m struggling to fit the given triangle below to the equilateral triangle.  
I have no clue how to detect it. I just want the three points that represents he equilateral triangle.

 ![b](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/3/3f5972ea56b37cf83b32a8968f726f7cf39e27f6.png)

Thanks a lot for advising.

---

<div class="post-metadata">

**Author:** ![laurent.berger](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@laurent.berger](https://forum.opencv.org/u/laurent.berger)\
**Post date:** [May 26, 2023, 9:41am UTC](https://forum.opencv.org/t/how-to-detect-the-equilateral-triangle-from-the-given-triangle/13317/2 "2023-05-26T09:41:09Z")

</div>

It looks like as an exercise.  
What have you already done?  
There are many tutorials about contour [OpenCV: Image Processing (imgproc module)](https://docs.opencv.org/4.x/d7/da8/tutorial_table_of_content_imgproc.html) may be one will help you to solve your problem
