Search code examples
pythonopencvimage-processingslam

How to turn a 3D image into a 2D map?


As the title state's I'm trying to turn an image like this: enter image description here

Into a 2d map. More specifically I want to map the red lines I was able to add on top of the image. I've tried some stuff and all I was able to get was this: enter image description here

Any help or tips? (I'm using mostly opencv on python for this work)


Solution

  • If I understand you correctly you want to transform your camera image into a bird's eye view perspective, eliminating the perspective warp of the lane markings and creating a flat 2D top-down view of the road plane.

    If this is indeed what you want to achieve you can consult this tutorial for OpenCV tutorial which is doing exactly this: Bird's Eye View Transformation tutorial