diff --git a/client/src/main/generated/com/regula/facesdk/webclient/gen/api/MatchApi.java b/client/src/main/generated/com/regula/facesdk/webclient/gen/api/MatchApi.java index 4ca9063..fa0f1fa 100644 --- a/client/src/main/generated/com/regula/facesdk/webclient/gen/api/MatchApi.java +++ b/client/src/main/generated/com/regula/facesdk/webclient/gen/api/MatchApi.java @@ -386,14 +386,16 @@ private okhttp3.Call matchValidateBeforeCall( * compare faces (1:1) To perform a comparison of faces in the same image or in two different * images, use POST `/api/match`. It's possible to compare faces in the same image * or in two different images, this is defined by the `images.type` parameter. - * <br><br> The face detection result is displayed in the `detections` - * field. Each face is identified by two parameters: `faceIndex` (the index number of - * the face) and `imageIndex` (the index number of the image on which the face is - * detected). So, if there are two images each of which has two faces in them, the parameters will - * be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: - * 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - - * First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second - * face in the second image: `faceIndex: 1`, `imageIndex: 1` + * <br><br> Note that no more than two images of the same `type` are allowed + * for comparison.<br><br> The face detection result is displayed in the + * `detections` field. Each face is identified by two parameters: `faceIndex` + * (the index number of the face) and `imageIndex` (the index number of the image on + * which the face is detected). So, if there are two images each of which has two faces in them, + * the parameters will be the following: - First face in the first image: `faceIndex: + * 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, + * `imageIndex: 0` - First face of the second image: `faceIndex: 0`, + * `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, + * `imageIndex: 1` * * @param matchRequest (required) * @param xRequestID Request header label. (optional) @@ -420,14 +422,16 @@ public MatchResponse match( * compare faces (1:1) To perform a comparison of faces in the same image or in two different * images, use POST `/api/match`. It's possible to compare faces in the same image * or in two different images, this is defined by the `images.type` parameter. - * <br><br> The face detection result is displayed in the `detections` - * field. Each face is identified by two parameters: `faceIndex` (the index number of - * the face) and `imageIndex` (the index number of the image on which the face is - * detected). So, if there are two images each of which has two faces in them, the parameters will - * be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: - * 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - - * First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second - * face in the second image: `faceIndex: 1`, `imageIndex: 1` + * <br><br> Note that no more than two images of the same `type` are allowed + * for comparison.<br><br> The face detection result is displayed in the + * `detections` field. Each face is identified by two parameters: `faceIndex` + * (the index number of the face) and `imageIndex` (the index number of the image on + * which the face is detected). So, if there are two images each of which has two faces in them, + * the parameters will be the following: - First face in the first image: `faceIndex: + * 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, + * `imageIndex: 0` - First face of the second image: `faceIndex: 0`, + * `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, + * `imageIndex: 1` * * @param matchRequest (required) * @param xRequestID Request header label. (optional) @@ -455,7 +459,8 @@ public ApiResponse matchWithHttpInfo( * compare faces (1:1) (asynchronously) To perform a comparison of faces in the same image or in * two different images, use POST `/api/match`. It's possible to compare faces in * the same image or in two different images, this is defined by the `images.type` - * parameter. <br><br> The face detection result is displayed in the + * parameter. <br><br> Note that no more than two images of the same `type` + * are allowed for comparison.<br><br> The face detection result is displayed in the * `detections` field. Each face is identified by two parameters: `faceIndex` * (the index number of the face) and `imageIndex` (the index number of the image on * which the face is detected). So, if there are two images each of which has two faces in them, diff --git a/client/src/main/java/com/regula/facesdk/webclient/api/MatchApi.java b/client/src/main/java/com/regula/facesdk/webclient/api/MatchApi.java index 51c56ff..6599f6c 100644 --- a/client/src/main/java/com/regula/facesdk/webclient/api/MatchApi.java +++ b/client/src/main/java/com/regula/facesdk/webclient/api/MatchApi.java @@ -5,10 +5,10 @@ import com.regula.facesdk.webclient.ApiResponse; import com.regula.facesdk.webclient.gen.model.DetectRequest; import com.regula.facesdk.webclient.gen.model.DetectResponse; -import com.regula.facesdk.webclient.gen.model.MatchRequest; -import com.regula.facesdk.webclient.gen.model.MatchResponse; import com.regula.facesdk.webclient.gen.model.MatchAndSearchRequest; import com.regula.facesdk.webclient.gen.model.MatchAndSearchResponse; +import com.regula.facesdk.webclient.gen.model.MatchRequest; +import com.regula.facesdk.webclient.gen.model.MatchResponse; public class MatchApi extends com.regula.facesdk.webclient.gen.api.MatchApi { public MatchApi() { @@ -37,11 +37,13 @@ public DetectResponse detect(DetectRequest detectRequest) throws ApiException { return localVarResp.getData(); } - public MatchAndSearchResponse matchAndSearch(MatchAndSearchRequest matchAndSearchRequest, String xRequestID) throws ApiException { + public MatchAndSearchResponse matchAndSearch( + MatchAndSearchRequest matchAndSearchRequest, String xRequestID) throws ApiException { return super.matchAndSearch(matchAndSearchRequest, xRequestID); } - public MatchAndSearchResponse matchAndSearch(MatchAndSearchRequest matchAndSearchRequest) throws ApiException { + public MatchAndSearchResponse matchAndSearch(MatchAndSearchRequest matchAndSearchRequest) + throws ApiException { return super.matchAndSearch(matchAndSearchRequest, ""); } }