apple / ARKitScenes

This repo accompanies the research paper, ARKitScenes - A Diverse Real-World Dataset for 3D Indoor Scene Understanding Using Mobile RGB-D Data and contains the data, scripts to visualize and process assets, and training code described in our paper.
Other
662 stars 58 forks source link

Rectification #51

Closed mahtabbigverdi closed 1 year ago

mahtabbigverdi commented 1 year ago

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.

Levintsky commented 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.

afshindn commented 1 year ago

@mahtabbigverdi I hope the answer above fixed your issue. Please let us know if there is any other concerns.

mahtabbigverdi commented 1 year ago

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

Levintsky commented 1 year ago

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. 41048071_4518 913