# Identify stair projection

**URL:** <https://forum.opencv.org/t/identify-stair-projection/1717>\
**Category:** Python\
**Tags:** objdetect, slam, shape\
**Created:** [February 23, 2021, 2:12am UTC](https://forum.opencv.org/t/identify-stair-projection/1717 "2021-02-23T02:12:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/liam/32/1101_2.png) [@Liam](https://forum.opencv.org/u/Liam)\
**Post date:** [February 23, 2021, 2:12am UTC](https://forum.opencv.org/t/identify-stair-projection/1717/1 "2021-02-23T02:12:35Z")

</div>

Hi, I am trying to mark the stair projection which generated by SLAM. I think the stair projection is similar with zebra crossing. Thus, I want to adjust zebra crossing code for identifying stair. However, I’m new to opencv. Thus, could you help me by giving some suggestions like, whether the stair projection is similar with zebra crossing? What code should I add? Whether opencv will work for this problem?  
Thank you !!!  
 ![gridmap](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/1/16fecf90e6536e248099b9407df86cf3669db992.jpeg)

---

<div class="post-metadata">

**Author:** ![computervisionpro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/computervisionpro/32/1120_2.png) [@computervisionpro](https://forum.opencv.org/u/computervisionpro)\
**Post date:** [February 24, 2021, 6:32am UTC](https://forum.opencv.org/t/identify-stair-projection/1717/2 "2021-02-24T06:32:35Z")

</div>

HI,  
You can detect the shape and identify the stairs, as it is rectangular.  
Try referring this

> **[OpenCV shape detection - PyImageSearch](https://www.pyimagesearch.com/2016/02/08/opencv-shape-detection/)**
>
> This tutorial demonstrates how to detect simple geometric shapes (such as squares, circles, rectangles, & pentagons) in images using Python and OpenCV.
