A sample code showing how to select and switch between lens mode on-the-fly, selecting Depth, IR or image.
Refer to the link at Github for more details:
https://github.com/lips-hci/LIPSedge-sdk-samples/tree/main/LIPSLensModeSelect-gl