FaceStation 2 has a maximum of 30 templates per face.
You need to clarify numOfTemplate the number of templates as much as the BSFace does have. That way the device would match within real template data in BS2Face.templateData. If this number is not correct, the matching may be wrong.
For example, assuming numOfTemplate is set to 25(0x19), but the actual face template data exist only 10 in templateData, the device can try to match with garbage values in the templateData array, which might cause wrong result.
FYI, FaceStation 2 normally extract 25 templates when scanning your face.