Log in or register to post comments

Undisort camera image nearby an AR marker

April 24, 2019 - 2:11am #1

How can I undistort an area from the camera feed nearby an AR marker? The image below should show clearly what I would like to achieve.

If a ready made solution does not exist, guidance towards how to approach the problem is greatly appreciated.

Please see the attached image for a visual diagram.

 

 

AttachmentSize
Image icon AR marker distortion.PNG82.25 KB

Undisort camera image nearby an AR marker

April 29, 2019 - 11:50am #3

Attached is a Unity project that shows my attempt at undistorting the marker.

Camera 1 freely moves around the marker (this would be the video camera on the mobile device).

Camera 2 copies the movement of Camera 1, but Camera 2 is looking at a Quad with the rendered texture from Camera 1.

The view from Camera 2 should show the marker as normal (no distortion or as close to no distortion at possible).

Is this the correct route to be going down?

Because Camera 1 is currently looking up at the marker, the marker appears squished on the Y axis on the Quad. I could therefore increase the Y scale of the Quad. But, I feel like I'm hacking my way to solution... !

 

 

 

 

AttachmentSize
Package icon undistort_marker.zip15.61 MB

Undisort camera image nearby an AR marker

April 24, 2019 - 4:22am #2

My previous reply might have been wrong, so here's my edit.

you could either make the image face the camera, or draw directly on the ui

Log in or register to post comments