Draw virtual tunnel in camera view


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.



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


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: