# \#geometry

**URL:** https://forum.opencv.org/tag/geometry/311.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [How to draw a vertical line on a line in opencv python](https://forum.opencv.org/t/how-to-draw-a-vertical-line-on-a-line-in-opencv-python/5769)

<div class="topic-metadata">

**Author:** [@payam\_mohammadi](https://forum.opencv.org/u/payam_mohammadi)\
**Replies:** 3\
**Last updated:** [October 21, 2021, 4:25pm UTC](https://forum.opencv.org/t/how-to-draw-a-vertical-line-on-a-line-in-opencv-python/5769 "2021-10-21T16:25:27Z")

</div>

hi guys i have a simply question i have a line from point x1 to point x2 (cv2.line(image, x1,x2.(1,1,1)) how can i draw a vertical line (90" degree) on this line ? and is there a way that red line show with dash l…
