hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.13k stars 394 forks source link

Get target image orientation #440

Open rundosrun opened 11 months ago

rundosrun commented 11 months ago

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.

hiukim commented 5 months ago

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.

rundosrun commented 5 months ago

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

hiukim commented 5 months ago

just rotate your object 90 deg?