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