A black delivery driver’s account was removed after facial-recognition software failed to recognise him.