# \#halcon

**URL:** https://forum.opencv.org/tag/halcon/223.md

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

---

## [Is there a function in OpenCV that is similar to 'gen\_measure\_rectangle2' in halcon?](https://forum.opencv.org/t/is-there-a-function-in-opencv-that-is-similar-to-gen-measure-rectangle2-in-halcon/2479)

<div class="topic-metadata">

**Author:** [@vaishnavi.suri](https://forum.opencv.org/u/vaishnavi.suri)\
**Replies:** 8\
**Last updated:** [April 6, 2021, 8:11am UTC](https://forum.opencv.org/t/is-there-a-function-in-opencv-that-is-similar-to-gen-measure-rectangle2-in-halcon/2479 "2021-04-06T08:11:04Z")

</div>

Hello, I have a project where I need to implement a measurement caliper tool in OpenCV C++ which should replicate a measuring tool in Halcon. It uses mainly the functions ‘gen\_measure\_rectangle2’ and ‘measure\_pairs’ fro…
