Confirm the selection visually
Inspect the detection outputs to identify the intended person rather than assuming the first result. Store those paths with the exact input version.
Send the mapped pair
Use the current detected path and approved replacement path. Test the request against a representative small case before batching.
Example
In a two-person photo, the same full image is the target for both roles while each detected face needs its own reference entry.
Pass condition
The correct mapped person changes and the source and replacement fields can be independently traced.