How to get the non player agent info only within the fov of camera of the ego vehicle?

How to get the nonplayer agent info only within the field of view of the camera of the ego vehicle?