Is it possible to access the camera from the gazebo simulator for object detection

Hi all,
I am trying to do object detection using gazebo simulator camera input in PX4 So can you please tell me can we access the camera of drone of simulator and process the image. If yes how can we access it.

NOTE: I am doing this object detection without the hardware but only in simulator.

Your suggestions are appreciated Thanks.