> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.stereolabs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.stereolabs.com/_mcp/server.

# Samples - Plane Detection

This section contains samples demonstrating how to use the ZED SDK's [Plane Detection](/docs/development/zed-sdk/modules/spatial-mapping/plane-detection/) feature to detect the floor and other planar surfaces in a scene.

## Getting Started

* First, download the latest version of the [ZED SDK](https://www.stereolabs.com/developers/).
* Download the [Plane Detection](https://github.com/stereolabs/zed-sdk/tree/master/plane%20detection) sample code in C++, Python or C#.

## Samples in this category

### Plane Detection

Shows how to perform plane detection with a ZED camera, using either hit-test detection (pick a point in the image and find the plane it belongs to) or automatic floor plane detection. *(C++, Python, C#)*

[GitHub](https://github.com/stereolabs/zed-sdk/tree/master/plane%20detection/plane%20detection)

### Floor Plane

Shows two ways to automatically detect the floor plane and use it to set the origin of a virtual view. *(C++)*

[GitHub](https://github.com/stereolabs/zed-sdk/tree/master/plane%20detection/floor%20plane)