How to get the world coordinates of a stretched Texture2D?
I am using OpenCV+Unity3d. For image processing I am resizing the webcam feed to 300x200 pixels for faster performance. Now I am detecting some lines on this video feed (road lanes). This lanes are detected on 300x200 size. Now currently I am displaying this feed on a texture2d of size 300x200. When it runs, I can see it in full screen. But I need a way to convert the line coordinates from the 300x200 size to the size of the window i.e. 1280x720 or any other full resolution. With these coordinates I intend to use the linerenderer component to show (highlight) the roads from the video. Please tell me a way to convert the texture2d pixel coordinates to the world screen.
Your answer
Follow this Question
Related Questions
Zooming WebCamTexture?!? 1 Answer
Solved Webcamtexture 0 Answers
Convert Texture2D coordinate to actual world space 0 Answers
When I run getPixel32 () in WebcamTexture, only black pixels are returned. 1 Answer
Converting Texture2D into a video 1 Answer