2

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)

Bob Stoops
  • 151
  • 2
  • 12
  • Please explain in detail what the axes of the 2D graph represent. – fmw42 Sep 12 '19 at 02:51
  • relative x and y positions in respect to the camera that took the picture (hope that makes sense) – Bob Stoops Sep 12 '19 at 03:03
  • Still does not make sense to me! x and y of what -- the camera location or the x,y of points along the the lines, ignoring z (in world coordinates)? If the latter, how is your world coordinate system define? Can you explain better or show a diagram? – fmw42 Sep 12 '19 at 04:00

1 Answers1

2

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

Malefitz
  • 417
  • 3
  • 7