Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

2D to 3D conversion using a reference target.

Discussion in 'Computer Vision' started by nnnnnggggg, Nov 14, 2022.

  1. nnnnnggggg

    nnnnnggggg

    Joined:
    Feb 24, 2020
    Posts:
    1
    Hey everyone,

    I am stuck on a problem where I need to convert 2D image pixel values to 3D Unity world coordinates. I have a reference target in the image whose pixel and 3D Unity world coordinates are known to me. Therefore, using this information I wish to convert the given 2D image pixel values to 3D Unity world coordinates.

    I don't want to use ScreenToWorldPoint() function as I don't want to hardcode the z value for the function every time I wish to make the conversion.

    Is there a way to do that using the reference target in the image whose pixel and 3D Unity world coordinates are known to me or any other way?
     
    Last edited: Dec 12, 2022