Draw virtual tunnel in camera view

Hello,

i am new to OpenCV and would like to know if there is an elegant/efficient way to draw a virtual tunnel for overlay in a live camera stream like shown below.
I could calculate the endpoints of each line indvidually and draw the tunnel, however, maybe there is another way to simply define the 3D-points and let openCV caculate the correct projected view of the tunnel?
Additionally it is not a static tunnel but may bend in curves.
Thanks

road

welcome.

the API is projectPoints.

Thank you for the hint! :slight_smile:
Is there a VERY simple example on how to use this available?

try this

https://docs.opencv.org/master/d7/d53/tutorial_py_pose.html

Thank you again.
With that, i got it running in C++ now.
The only thing left i have to figure out is the rotation matrix :wink: