@ThriftService(value="FaceApi") public interface FaceApi
Modifier and Type | Interface and Description |
---|---|
static interface |
FaceApi.Async |
Modifier and Type | Method and Description |
---|---|
double |
compare2Face(byte[] imgData1,
CodeInfo facePos1,
byte[] imgData2,
CodeInfo facePos2) |
double |
compareCode(byte[] code1,
byte[] code2) |
java.util.List<java.lang.Double> |
compareCodes(byte[] code1,
java.util.List<CodeInfo> codes) |
CompareResult |
compareFaces(byte[] code,
byte[] imgData,
int faceNum) |
java.util.List<java.lang.Double> |
compareFeatures(byte[] code1,
java.util.List<byte[]> codes) |
double |
detectAndCompare2Face(byte[] imgData1,
FRect detectRect1,
byte[] imgData2,
FRect detectRect2) |
java.util.List<CodeInfo> |
detectAndGetCodeInfo(byte[] imgData,
int faceNum) |
CodeInfo |
detectCenterFace(byte[] imgData) |
java.util.List<CodeInfo> |
detectFace(byte[] imgData) |
CodeInfo |
detectMaxFace(byte[] imgData) |
java.util.List<CodeInfo> |
getCodeInfo(byte[] imgData,
int faceNum,
java.util.List<CodeInfo> facePos) |
CodeInfo |
getCodeInfoSingle(byte[] imgData,
CodeInfo facePos) |
byte[] |
getFeature(java.util.Map<byte[],CodeInfo> faces) |
boolean |
hasFace(byte[] imgData) |
boolean |
isLocal() |
java.util.List<CodeInfo> |
matDetectAndGetCodeInfo(MatType matType,
byte[] matData,
int width,
int height,
int faceNum) |
java.util.List<CodeInfo> |
matDetectFace(MatType matType,
byte[] matData,
int width,
int height) |
CodeInfo |
matDetectMaxFace(MatType matType,
byte[] matData,
int width,
int height) |
java.util.List<CodeInfo> |
matGetCodeInfo(MatType matType,
byte[] matData,
int width,
int height,
int facenum,
java.util.List<CodeInfo> facePos) |
CodeInfo |
matGetCodeInfoSingle(MatType matType,
byte[] matData,
int width,
int height,
CodeInfo facePos) |
boolean |
matHasFace(MatType matType,
byte[] matData,
int width,
int height) |
java.util.List<FseResult> |
matSearchFaces(MatType matType,
byte[] matData,
int width,
int height,
CodeInfo facePos,
double similarty,
int rows) |
boolean |
matWearMask(MatType matType,
byte[] matData,
int width,
int height,
CodeInfo faceInfo) |
java.util.Map<java.lang.String,java.lang.String> |
sdkCapacity() |
java.util.List<FseResult> |
searchFaces(byte[] imgData,
CodeInfo facePos,
double similarty,
int rows) |
java.util.List<FseResult> |
searchFeatures(byte[] feature,
double similarty,
int rows) |
boolean |
wearMask(byte[] imgData,
CodeInfo faceInfo) |
@ThriftMethod(value="compare2Face",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=ServiceRuntimeException.class,id=3)}) double compare2Face(@ThriftField(value=1,name="imgData1",requiredness=OPTIONAL) byte[] imgData1, @ThriftField(value=2,name="facePos1",requiredness=OPTIONAL) CodeInfo facePos1, @ThriftField(value=3,name="imgData2",requiredness=OPTIONAL) byte[] imgData2, @ThriftField(value=4,name="facePos2",requiredness=OPTIONAL) CodeInfo facePos2) throws ImageErrorException, NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="compareCode", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) double compareCode(@ThriftField(value=1,name="code1",requiredness=OPTIONAL) byte[] code1, @ThriftField(value=2,name="code2",requiredness=OPTIONAL) byte[] code2) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="compareCodes", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) java.util.List<java.lang.Double> compareCodes(@ThriftField(value=1,name="code1",requiredness=OPTIONAL) byte[] code1, @ThriftField(value=2,name="codes",requiredness=OPTIONAL) java.util.List<CodeInfo> codes) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="compareFaces",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=ServiceRuntimeException.class,id=3)}) CompareResult compareFaces(@ThriftField(value=1,name="code",requiredness=OPTIONAL) byte[] code, @ThriftField(value=2,name="imgData",requiredness=OPTIONAL) byte[] imgData, @ThriftField(value=3,name="faceNum",requiredness=REQUIRED) int faceNum) throws ImageErrorException, NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="compareFeatures", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) java.util.List<java.lang.Double> compareFeatures(@ThriftField(value=1,name="code1",requiredness=OPTIONAL) byte[] code1, @ThriftField(value=2,name="codes",requiredness=OPTIONAL) java.util.List<byte[]> codes) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="detectAndCompare2Face",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=ServiceRuntimeException.class,id=3)}) double detectAndCompare2Face(@ThriftField(value=1,name="imgData1",requiredness=OPTIONAL) byte[] imgData1, @ThriftField(value=2,name="detectRect1",requiredness=OPTIONAL) FRect detectRect1, @ThriftField(value=3,name="imgData2",requiredness=OPTIONAL) byte[] imgData2, @ThriftField(value=4,name="detectRect2",requiredness=OPTIONAL) FRect detectRect2) throws ImageErrorException, NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="detectAndGetCodeInfo",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=ServiceRuntimeException.class,id=3)}) java.util.List<CodeInfo> detectAndGetCodeInfo(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData, @ThriftField(value=2,name="faceNum",requiredness=REQUIRED) int faceNum) throws ImageErrorException, NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="detectCenterFace",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=ServiceRuntimeException.class,id=3)}) CodeInfo detectCenterFace(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData) throws ImageErrorException, NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="detectFace",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=ServiceRuntimeException.class,id=2)}) java.util.List<CodeInfo> detectFace(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData) throws ImageErrorException, ServiceRuntimeException
@ThriftMethod(value="detectMaxFace",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=ServiceRuntimeException.class,id=3)}) CodeInfo detectMaxFace(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData) throws ImageErrorException, NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="getCodeInfo",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=ServiceRuntimeException.class,id=2)}) java.util.List<CodeInfo> getCodeInfo(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData, @ThriftField(value=2,name="faceNum",requiredness=REQUIRED) int faceNum, @ThriftField(value=3,name="facePos",requiredness=OPTIONAL) java.util.List<CodeInfo> facePos) throws NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="getCodeInfoSingle", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) CodeInfo getCodeInfoSingle(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData, @ThriftField(value=2,name="facePos",requiredness=OPTIONAL) CodeInfo facePos) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="getFeature",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=ServiceRuntimeException.class,id=2)}) byte[] getFeature(@ThriftField(value=1,name="faces",requiredness=OPTIONAL) java.util.Map<byte[],CodeInfo> faces) throws NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="hasFace",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=ServiceRuntimeException.class,id=2)}) boolean hasFace(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData) throws ImageErrorException, ServiceRuntimeException
@ThriftMethod(value="isLocal", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) boolean isLocal() throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="matDetectAndGetCodeInfo",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=ServiceRuntimeException.class,id=2)}) java.util.List<CodeInfo> matDetectAndGetCodeInfo(@ThriftField(value=1,name="matType",requiredness=OPTIONAL) MatType matType, @ThriftField(value=2,name="matData",requiredness=OPTIONAL) byte[] matData, @ThriftField(value=3,name="width",requiredness=REQUIRED) int width, @ThriftField(value=4,name="height",requiredness=REQUIRED) int height, @ThriftField(value=5,name="faceNum",requiredness=REQUIRED) int faceNum) throws NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="matDetectFace", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) java.util.List<CodeInfo> matDetectFace(@ThriftField(value=1,name="matType",requiredness=OPTIONAL) MatType matType, @ThriftField(value=2,name="matData",requiredness=OPTIONAL) byte[] matData, @ThriftField(value=3,name="width",requiredness=REQUIRED) int width, @ThriftField(value=4,name="height",requiredness=REQUIRED) int height) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="matDetectMaxFace",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=ServiceRuntimeException.class,id=2)}) CodeInfo matDetectMaxFace(@ThriftField(value=1,name="matType",requiredness=OPTIONAL) MatType matType, @ThriftField(value=2,name="matData",requiredness=OPTIONAL) byte[] matData, @ThriftField(value=3,name="width",requiredness=REQUIRED) int width, @ThriftField(value=4,name="height",requiredness=REQUIRED) int height) throws NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="matGetCodeInfo",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=ServiceRuntimeException.class,id=2)}) java.util.List<CodeInfo> matGetCodeInfo(@ThriftField(value=1,name="matType",requiredness=OPTIONAL) MatType matType, @ThriftField(value=2,name="matData",requiredness=OPTIONAL) byte[] matData, @ThriftField(value=3,name="width",requiredness=REQUIRED) int width, @ThriftField(value=4,name="height",requiredness=REQUIRED) int height, @ThriftField(value=5,name="facenum",requiredness=REQUIRED) int facenum, @ThriftField(value=6,name="facePos",requiredness=OPTIONAL) java.util.List<CodeInfo> facePos) throws NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="matGetCodeInfoSingle", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) CodeInfo matGetCodeInfoSingle(@ThriftField(value=1,name="matType",requiredness=OPTIONAL) MatType matType, @ThriftField(value=2,name="matData",requiredness=OPTIONAL) byte[] matData, @ThriftField(value=3,name="width",requiredness=REQUIRED) int width, @ThriftField(value=4,name="height",requiredness=REQUIRED) int height, @ThriftField(value=5,name="facePos",requiredness=OPTIONAL) CodeInfo facePos) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="matHasFace", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) boolean matHasFace(@ThriftField(value=1,name="matType",requiredness=OPTIONAL) MatType matType, @ThriftField(value=2,name="matData",requiredness=OPTIONAL) byte[] matData, @ThriftField(value=3,name="width",requiredness=REQUIRED) int width, @ThriftField(value=4,name="height",requiredness=REQUIRED) int height) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="matSearchFaces",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=ServiceRuntimeException.class,id=3)}) java.util.List<FseResult> matSearchFaces(@ThriftField(value=1,name="matType",requiredness=OPTIONAL) MatType matType, @ThriftField(value=2,name="matData",requiredness=OPTIONAL) byte[] matData, @ThriftField(value=3,name="width",requiredness=REQUIRED) int width, @ThriftField(value=4,name="height",requiredness=REQUIRED) int height, @ThriftField(value=5,name="facePos",requiredness=OPTIONAL) CodeInfo facePos, @ThriftField(value=6,name="similarty",requiredness=REQUIRED) double similarty, @ThriftField(value=7,name="rows",requiredness=REQUIRED) int rows) throws ImageErrorException, NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="matWearMask", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) boolean matWearMask(@ThriftField(value=1,name="matType",requiredness=OPTIONAL) MatType matType, @ThriftField(value=2,name="matData",requiredness=OPTIONAL) byte[] matData, @ThriftField(value=3,name="width",requiredness=REQUIRED) int width, @ThriftField(value=4,name="height",requiredness=REQUIRED) int height, @ThriftField(value=5,name="faceInfo",requiredness=OPTIONAL) CodeInfo faceInfo) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="sdkCapacity", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) java.util.Map<java.lang.String,java.lang.String> sdkCapacity() throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="searchFaces",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=ServiceRuntimeException.class,id=3)}) java.util.List<FseResult> searchFaces(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData, @ThriftField(value=2,name="facePos",requiredness=OPTIONAL) CodeInfo facePos, @ThriftField(value=3,name="similarty",requiredness=REQUIRED) double similarty, @ThriftField(value=4,name="rows",requiredness=REQUIRED) int rows) throws ImageErrorException, NotFaceDetectedException, ServiceRuntimeException
@ThriftMethod(value="searchFeatures", exception=@ThriftException(type=ServiceRuntimeException.class,id=1)) java.util.List<FseResult> searchFeatures(@ThriftField(value=1,name="feature",requiredness=OPTIONAL) byte[] feature, @ThriftField(value=2,name="similarty",requiredness=REQUIRED) double similarty, @ThriftField(value=3,name="rows",requiredness=REQUIRED) int rows) throws ServiceRuntimeException
ServiceRuntimeException
@ThriftMethod(value="wearMask",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=ServiceRuntimeException.class,id=2)}) boolean wearMask(@ThriftField(value=1,name="imgData",requiredness=OPTIONAL) byte[] imgData, @ThriftField(value=2,name="faceInfo",requiredness=OPTIONAL) CodeInfo faceInfo) throws ImageErrorException, ServiceRuntimeException
Copyright © 2020. All rights reserved.