mind-ar-js icon indicating copy to clipboard operation
mind-ar-js copied to clipboard

Get target image orientation

Open rundosrun opened this issue 2 years ago • 3 comments
trafficstars

How can I get target image orientation (or rotation) in event targetFound? My task is to display the scene always with the correct orientation, even if the target image is pasted incorrectly. I plan to determine if the target image is upside down and rotate the scene accordingly.

rundosrun avatar Aug 05 '23 15:08 rundosrun

not entirely sure what is "correct orientation", but I guess you can try to use the anchor position and rotation properties to compute something for your use case.

hiukim avatar Jan 17 '24 04:01 hiukim

Thanks for your reply. I will try to explain through an illustration illustration

rundosrun avatar Jan 17 '24 08:01 rundosrun

just rotate your object 90 deg?

hiukim avatar Jan 17 '24 17:01 hiukim