hl2ss icon indicating copy to clipboard operation
hl2ss copied to clipboard

depth Ahat/LongThrow depth image resolution does not match sensor size

Open vstadnytskyi-FDA opened this issue 1 year ago • 1 comments

Hi All,

Please see settings for AHAT depth mode below. The images I get are 512x512 in size. However, the specs on the device webpage https://learn.microsoft.com/en-us/hololens/hololens2-hardware show that the depth camera is 1024x1024 (1MPx).

Why do I get smaller depth images?

AHAT

# Settings --------------------------------------------------------------------

# Port
port = hl2ss.StreamPort.RM_DEPTH_AHAT

# Operating mode
# 0: video
# 1: video + rig pose
# 2: query calibration (single transfer)
mode = hl2ss.StreamMode.MODE_1

# PNG filter
png_filter = hl2ss.PngFilterMode.Paeth
bitrate = 8*1024*1024
profile = hl2ss.VideoProfile.H265_MAIN

#------------------------------------------------------------------------------
try:
    client.close()
except:
    print('client it not initialize')
client = hl2ss.rx_decoded_rm_depth_ahat(host, port, hl2ss.ChunkSize.RM_DEPTH_AHAT, mode, profile, bitrate)
client.open()

LongThrow

# Settings --------------------------------------------------------------------

# Port
port = hl2ss.StreamPort.RM_DEPTH_LONGTHROW


# Operating mode
# 0: video
# 1: video + rig pose
# 2: query calibration (single transfer)
mode = hl2ss.StreamMode.MODE_1

# PNG filter
png_filter = hl2ss.PngFilterMode.Paeth
bitrate = 8*1024*1024
#------------------------------------------------------------------------------
client = hl2ss.rx_decoded_rm_depth_longthrow(host, port, hl2ss.ChunkSize.RM_DEPTH_LONGTHROW, mode, png_filter)
client.open()

vstadnytskyi-FDA avatar Jul 18 '23 15:07 vstadnytskyi-FDA

Answer to this question is in the original HoloLens2 research paper. https://arxiv.org/pdf/2008.11239.pdf image

vstadnytskyi-FDA avatar Jul 18 '23 15:07 vstadnytskyi-FDA