This approach reads the images using the omni.syntheticdata extension…
from omni.syntheticdata import sensors
Note that the camera sensor needs to be initialized… otherwise, you will get an empty frame/array during the first simulation steps (ValueError: cannot reshape array of size 0 into shape (0,0,newaxis))
The following post may help with the initialization process