# Detecting flat surface object but the depth return is not consistent

**URL:** <https://forum.opencv.org/t/detecting-flat-surface-object-but-the-depth-return-is-not-consistent/2122>\
**Category:** Uncategorized\
**Tags:** stereorectify, depth, stereo, disparitymap\
**Created:** [March 12, 2021, 1:39am UTC](https://forum.opencv.org/t/detecting-flat-surface-object-but-the-depth-return-is-not-consistent/2122 "2021-03-12T01:39:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubucar](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@bubucar](https://forum.opencv.org/u/bubucar)\
**Post date:** [March 12, 2021, 1:39am UTC](https://forum.opencv.org/t/detecting-flat-surface-object-but-the-depth-return-is-not-consistent/2122/1 "2021-03-12T01:39:56Z")

</div>

![111](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/4/4a4c1083fd177de90b661221bbb707e86a8a4801.png)

Hi, i have a stereo camera system capture an object put on table (which is flat surface) but the depth return showns is not consistent  
 ![dekstop1](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/d/d36956ea2d541d6c3a0312245f1c1b5ddbdb4502.png)  
From the colormap we can see that the object color is not consistent, however it is put flat on table, how can i get the constant depth from the angled stereo camera system??

i have done asymmetrical circle grid calibration,stereo calibration, stereo rectify, InitUndistortRectifyMap,remap and finally using stereoSGBM for the output.

Thanks for your help, sincerely need help
