@ThriftService(value="FaceApi") public class FaceApiThriftDecorator extends java.lang.Object
FaceApi接口FaceApi实例封装为一个thrift服务delegate()指定的实例| Constructor and Description |
|---|
FaceApiThriftDecorator(FaceApi delegate) |
| Modifier and Type | Method and Description |
|---|---|
double |
compare2Face(java.nio.ByteBuffer imgData1,
CodeInfo facePos1,
java.nio.ByteBuffer imgData2,
CodeInfo facePos2) |
double |
compareCode(java.nio.ByteBuffer code1,
java.nio.ByteBuffer code2) |
java.util.List<java.lang.Double> |
compareCodes(java.nio.ByteBuffer code1,
java.util.List<CodeInfo> codes) |
CompareResult |
compareFaces(java.nio.ByteBuffer code,
java.nio.ByteBuffer imgData,
int faceNum) |
java.util.List<java.lang.Double> |
compareFeatures(java.nio.ByteBuffer code1,
java.util.List<java.nio.ByteBuffer> codes) |
FaceApi |
delegate() |
double |
detectAndCompare2Face(java.nio.ByteBuffer imgData1,
FRect detectRect1,
java.nio.ByteBuffer imgData2,
FRect detectRect2) |
java.util.List<CodeInfo> |
detectAndGetCodeInfo(java.nio.ByteBuffer imgData,
int faceNum) |
CodeInfo |
detectCenterFace(java.nio.ByteBuffer imgData) |
java.util.List<CodeInfo> |
detectFace(java.nio.ByteBuffer imgData) |
CodeInfo |
detectMaxFace(java.nio.ByteBuffer imgData) |
java.util.List<CodeInfo> |
getCodeInfo(java.nio.ByteBuffer imgData,
int faceNum,
java.util.List<CodeInfo> facePos) |
CodeInfo |
getCodeInfoSingle(java.nio.ByteBuffer imgData,
CodeInfo facePos) |
java.nio.ByteBuffer |
getFeature(java.util.Map<java.nio.ByteBuffer,CodeInfo> faces) |
boolean |
hasFace(java.nio.ByteBuffer imgData) |
boolean |
isLocal() |
java.util.List<CodeInfo> |
matDetectAndGetCodeInfo(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height,
int faceNum) |
java.util.List<CodeInfo> |
matDetectFace(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height) |
CodeInfo |
matDetectMaxFace(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height) |
java.util.List<CodeInfo> |
matGetCodeInfo(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height,
int facenum,
java.util.List<CodeInfo> facePos) |
CodeInfo |
matGetCodeInfoSingle(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height,
CodeInfo facePos) |
boolean |
matHasFace(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height) |
java.util.List<FseResult> |
matSearchFaces(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height,
CodeInfo facePos,
double similarty,
int rows) |
java.lang.Boolean |
matWearMask(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height,
CodeInfo faceInfo) |
java.util.Map<java.lang.String,java.lang.String> |
sdkCapacity() |
java.util.List<FseResult> |
searchFaces(java.nio.ByteBuffer imgData,
CodeInfo facePos,
double similarty,
int rows) |
java.util.List<FseResult> |
searchFeatures(java.nio.ByteBuffer feature,
double similarty,
int rows) |
java.lang.Boolean |
wearMask(java.nio.ByteBuffer imgData,
CodeInfo faceInfo) |
public FaceApiThriftDecorator(FaceApi delegate)
@ThriftMethod(value="compare2Face",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=3)})
public double compare2Face(java.nio.ByteBuffer imgData1,
CodeInfo facePos1,
java.nio.ByteBuffer imgData2,
CodeInfo facePos2)
throws ImageErrorException,
NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionNotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.compare2Face(byte[],net.gdface.sdk.CodeInfo,byte[],net.gdface.sdk.CodeInfo)@ThriftMethod(value="compareCode") public double compareCode(java.nio.ByteBuffer code1, java.nio.ByteBuffer code2) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.compareCode(byte[],byte[])@ThriftMethod(value="compareCodes") public java.util.List<java.lang.Double> compareCodes(java.nio.ByteBuffer code1, java.util.List<CodeInfo> codes) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.compareCodes(byte[],net.gdface.sdk.CodeInfo[])@ThriftMethod(value="compareFaces",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=3)})
public CompareResult compareFaces(java.nio.ByteBuffer code,
java.nio.ByteBuffer imgData,
int faceNum)
throws ImageErrorException,
NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionNotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.compareFaces(byte[],byte[],int)@ThriftMethod(value="compareFeatures") public java.util.List<java.lang.Double> compareFeatures(java.nio.ByteBuffer code1, java.util.List<java.nio.ByteBuffer> codes) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.compareFeatures(byte[],java.util.List)@ThriftMethod(value="detectAndCompare2Face",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=3)})
public double detectAndCompare2Face(java.nio.ByteBuffer imgData1,
FRect detectRect1,
java.nio.ByteBuffer imgData2,
FRect detectRect2)
throws ImageErrorException,
NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionNotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.detectAndCompare2Face(byte[],net.gdface.sdk.FRect,byte[],net.gdface.sdk.FRect)@ThriftMethod(value="detectAndGetCodeInfo",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=3)})
public java.util.List<CodeInfo> detectAndGetCodeInfo(java.nio.ByteBuffer imgData,
int faceNum)
throws ImageErrorException,
NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionNotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.detectAndGetCodeInfo(byte[],int)@ThriftMethod(value="detectCenterFace",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=3)})
public CodeInfo detectCenterFace(java.nio.ByteBuffer imgData)
throws ImageErrorException,
NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionNotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.detectCenterFace(byte[])@ThriftMethod(value="detectFace",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=2)})
public java.util.List<CodeInfo> detectFace(java.nio.ByteBuffer imgData)
throws ImageErrorException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.detectFace(byte[])@ThriftMethod(value="detectMaxFace",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=3)})
public CodeInfo detectMaxFace(java.nio.ByteBuffer imgData)
throws ImageErrorException,
NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionNotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.detectMaxFace(byte[])@ThriftMethod(value="getCodeInfo",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=2)})
public java.util.List<CodeInfo> getCodeInfo(java.nio.ByteBuffer imgData,
int faceNum,
java.util.List<CodeInfo> facePos)
throws NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
NotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.getCodeInfo(byte[],int,net.gdface.sdk.CodeInfo[])@ThriftMethod(value="getCodeInfoSingle") public CodeInfo getCodeInfoSingle(java.nio.ByteBuffer imgData, CodeInfo facePos) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.getCodeInfo(byte[],net.gdface.sdk.CodeInfo)@ThriftMethod(value="getFeature",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=2)})
public java.nio.ByteBuffer getFeature(java.util.Map<java.nio.ByteBuffer,CodeInfo> faces)
throws NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
NotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.getFeature(java.util.Map)@ThriftMethod(value="hasFace",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=2)})
public boolean hasFace(java.nio.ByteBuffer imgData)
throws ImageErrorException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.hasFace(byte[])@ThriftMethod(value="isLocal") public boolean isLocal() throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.isLocal()@ThriftMethod(value="matDetectAndGetCodeInfo",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=2)})
public java.util.List<CodeInfo> matDetectAndGetCodeInfo(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height,
int faceNum)
throws NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
NotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.matDetectAndGetCodeInfo(net.gdface.image.MatType,byte[],int,int,int)@ThriftMethod(value="matDetectFace") public java.util.List<CodeInfo> matDetectFace(net.gdface.image.MatType matType, java.nio.ByteBuffer matData, int width, int height) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.matDetectFace(net.gdface.image.MatType,byte[],int,int)@ThriftMethod(value="matDetectMaxFace",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=2)})
public CodeInfo matDetectMaxFace(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height)
throws NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
NotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.matDetectMaxFace(net.gdface.image.MatType,byte[],int,int)@ThriftMethod(value="matGetCodeInfo",exception={@ThriftException(type=NotFaceDetectedException.class,id=1),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=2)})
public java.util.List<CodeInfo> matGetCodeInfo(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height,
int facenum,
java.util.List<CodeInfo> facePos)
throws NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
NotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.matGetCodeInfo(net.gdface.image.MatType,byte[],int,int,int,net.gdface.sdk.CodeInfo[])@ThriftMethod(value="matGetCodeInfoSingle") public CodeInfo matGetCodeInfoSingle(net.gdface.image.MatType matType, java.nio.ByteBuffer matData, int width, int height, CodeInfo facePos) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.matGetCodeInfo(net.gdface.image.MatType,byte[],int,int,net.gdface.sdk.CodeInfo)@ThriftMethod(value="matHasFace") public boolean matHasFace(net.gdface.image.MatType matType, java.nio.ByteBuffer matData, int width, int height) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.matHasFace(net.gdface.image.MatType,byte[],int,int)@ThriftMethod(value="matSearchFaces",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=3)})
public java.util.List<FseResult> matSearchFaces(net.gdface.image.MatType matType,
java.nio.ByteBuffer matData,
int width,
int height,
CodeInfo facePos,
double similarty,
int rows)
throws ImageErrorException,
NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionNotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.matSearchFaces(net.gdface.image.MatType,byte[],int,int,net.gdface.sdk.CodeInfo,double,int)@ThriftMethod(value="matWearMask") public java.lang.Boolean matWearMask(net.gdface.image.MatType matType, java.nio.ByteBuffer matData, int width, int height, CodeInfo faceInfo) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.matWearMask(net.gdface.image.MatType,byte[],int,int,net.gdface.sdk.CodeInfo)@ThriftMethod(value="sdkCapacity") public java.util.Map<java.lang.String,java.lang.String> sdkCapacity() throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.sdkCapacity()@ThriftMethod(value="searchFaces",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=NotFaceDetectedException.class,id=2),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=3)})
public java.util.List<FseResult> searchFaces(java.nio.ByteBuffer imgData,
CodeInfo facePos,
double similarty,
int rows)
throws ImageErrorException,
NotFaceDetectedException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionNotFaceDetectedExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.searchFaces(byte[],net.gdface.sdk.CodeInfo,double,int)@ThriftMethod(value="searchFeatures") public java.util.List<FseResult> searchFeatures(java.nio.ByteBuffer feature, double similarty, int rows) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.searchFeatures(byte[],double,int)@ThriftMethod(value="wearMask",exception={@ThriftException(type=ImageErrorException.class,id=1),@ThriftException(type=net.gdface.thrift.exception.ServiceRuntimeException.class,id=2)})
public java.lang.Boolean wearMask(java.nio.ByteBuffer imgData,
CodeInfo faceInfo)
throws ImageErrorException,
net.gdface.thrift.exception.ServiceRuntimeException
ImageErrorExceptionnet.gdface.thrift.exception.ServiceRuntimeExceptionFaceApi.wearMask(byte[],net.gdface.sdk.CodeInfo)Copyright © 2020. All rights reserved.