OpenCV face recognition training model return unrealistic label index and confidence value

your ‘confidence’ is somehow a misnomer,
it’s actually the (chi-sqr) distance , so, smaller== better !

a ‘perfect’ 0.0 distance means: identity, so you must be testing with your train images again (bad idea)