Items with no label
3335 Discussions

Available attributes of frame metadata ( RealSense D415 )

均林
Beginner
3,968 Views

Dear Intel Support Team,

I want to get the exposure value when Auto Exposure is on, so I tried to call rs2_get_frame_metadata() with testing for attribute support :

if ( rs2_supports_frame_metadata(.., attribute,...) ){

val = rs2_get_frame_metadata(.., attribute,...)

}

However, It seems that there are only 3 attributes are supported :

"RS2_FRAME_METADATA_TIME_OF_ARRIVAL" ,

"RS2_FRAME_METADATA_BACKEND_TIMESTAMP",

"RS2_FRAME_METADATA_ACTUAL_FPS"

Will other attributes such as exposure value be supported in the future?

Is there any other way?

Regards,

JY

0 Kudos
8 Replies
MartyG
Honored Contributor III
1,416 Views

Instead of using frame metadata, you can get the exposure value with get_option, as described in the discussion linked to below, which suggests printing out exposure to a log with the instruction:

print(sensor.get_option(rs.option.exposure)

https://github.com/IntelRealSense/librealsense/issues/1624 auto_exposure problem · Issue # 1624 · IntelRealSense/librealsense · GitHub

0 Kudos
均林
Beginner
1,416 Views

Hi MartyG,

In fact, I want to get the actual exposure value rather than the manual exposure value. (Just like what is mentioned in the discussion you offered)

Therefore, I enabled auto_exposure first waiting the camera to adjust to the proper exposure value, then I switched off auto_exposure and try to get the adjusted exposure.

0 Kudos
MartyG
Honored Contributor III
1,416 Views

Thanks for the update! Do you need further assistance?

0 Kudos
均林
Beginner
1,416 Views

Hi MartyG,

Thanks for your help.

It seems that the actual exposure attribute is not supported in D415 so I cannot query it.

I really hope more metadata attributes would be supported in the future.

0 Kudos
MartyG
Honored Contributor III
1,416 Views

You can file a request for a particular feature to be added on the RealSense GitHub by going to the link below and clicking the 'New Issue' button to post a message.

https://github.com/IntelRealSense/librealsense/issues Issues · IntelRealSense/librealsense · GitHub

0 Kudos
MPrat3
Beginner
1,416 Views

Using firmware version 5.10.3 I was successfully able to query my D415 (using the Python API, but you can re-derive the C++ one):

frames = pipeline.wait_for_frames()

depth_frame = frames.get_depth_frame()

actual_exposure = depth_frame.get_frame_metadata(rs.frame_metadata_value.actual_exposure)

0 Kudos
MartyG
Honored Contributor III
1,416 Views

Thanks for sharing your solution, mprat!

0 Kudos
均林
Beginner
1,416 Views

Thanks for your help, mprat.

After some additional steps that are specified in thehttps://github.com/IntelRealSense/librealsense/blob/master/doc/installation_windows.md installation guide, I can get the frame metadata of RGB & depth sensor !

However, according to issue https://github.com/IntelRealSense/librealsense/issues/2218 # 2218, the actual exposure metadata attribute for RGB sensor updates only with the "Auto-exposure" flag is "Off" and this is a HW limitation.

Therefore, it seems that the current actual exposure value of RGB sensor cannot be get.

0 Kudos
Reply