This example is only suitable for ID photos with a pure background.
Original picture
renderings
Photos are from the Internet, please delete them if they are inappropriate
The first step to create a selection is the selection-color range. Hold down shift and click on the red background part multiple times to select all the background colors. You can also use the magic wand.
The second step is to create an adjustment layer (hue, saturation)