# How to detect movement edge from fixed edge with Python Opencv? for specific length detection

**URL:** <https://forum.opencv.org/t/how-to-detect-movement-edge-from-fixed-edge-with-python-opencv-for-specific-length-detection/15504>\
**Category:** Python\
**Created:** [November 14, 2023, 2:40am UTC](https://forum.opencv.org/t/how-to-detect-movement-edge-from-fixed-edge-with-python-opencv-for-specific-length-detection/15504 "2023-11-14T02:40:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tzuenk\_Huang](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/tzuenk_huang/32/9068_2.png) [@Tzuenk\_Huang](https://forum.opencv.org/u/Tzuenk_Huang)\
**Post date:** [November 14, 2023, 2:40am UTC](https://forum.opencv.org/t/how-to-detect-movement-edge-from-fixed-edge-with-python-opencv-for-specific-length-detection/15504/1 "2023-11-14T02:40:05Z")

</div>

Currently I have a project that related to measure the fabric’s length detection that i hope to use openCV python for programming.

Here is my idea in the below image,and please give me any suggestions on whether the measured length can be achieved using openCv? I can elaborate on this if anything unclear of the whole process.

**Keyword** : Fabric edge lay on the table (start to detect the edge) → cut the fabric to produce the other edge Calculation : Edge to Edge distance Help : What kind of tool should i use ? openCV+ROI+Camera capturing

 ![屏幕截图 2023-11-13 182134](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/5/5a0f8ac52c4c56b233761f25b2a6d68ab2b36f2f.png)
