Opencv test procedure