Closed mahtabbigverdi closed 1 year ago
Hi, the trajectory file contains poses for every frame, you may need to rectify each image. If we go further into later frames, it can return index=0 (no rotation) correctly. Another better way is that we run it on pose of each frame (just browsing line by line), and then pick the most frequent index.
@mahtabbigverdi I hope the answer above fixed your issue. Please let us know if there is any other concerns.
I picked the most frequent index, but for example for video 41048071.mov, all indices for all frames are 1, which means 90 degree counterclockwise rotations but the actual video doesn't need any rectifications
I checked the video 41048071, the image should be counterclockwise rotated. For example, the one named 41048071_4518.913.png. For images taken with camera facing down on the ground or directly to the floor, our algorithm does not handle those cases.
https://github.com/apple/ARKitScenes/blob/e2e975128a0a9695ea56fa215fe76b4295241538/threedod/benchmark_scripts/rectify_im.py#L63
I tested the code for video id 47333462 and it returned "3" which means a 90-degree rotation, however, the images look good and don't need any rectification.