It sounds exactly like this If you visit the Object Selection Tool, it utilizes Adobe’s Sensei AI for detection.
All objects within the image. The menu item www.healthable.us healthable health able Website health able us the Layer > Mask All Objects creates separate masks for each of the objects found in a layer.