public class ImageXServiceImpl extends BaseServiceImpl implements IImageXService
apiInfoList, serviceInfodestroy, getAccessKey, getApiInfoList, getHttpClient, getISigner, getRegion, getSecretKey, getServiceInfo, getSessionToken, getSignUrl, json, post, proto, put, putData, putDataWithResponse, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getAccessKey, getRegion, getSecretKey, getSessionToken, getSignUrl, json, post, proto, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2public static IImageXService getInstance()
public static IImageXService getInstance(String region) throws Exception
Exceptionpublic ApplyImageUploadResponse applyImageUpload(ApplyImageUploadRequest req) throws Exception
IImageXServiceapplyImageUpload in interface IImageXServicereq - the apply upload requestException - the exceptionpublic CommitImageUploadResponse commitImageUpload(CommitImageUploadRequest req) throws Exception
IImageXServicecommitImageUpload in interface IImageXServicereq - the commit upload requestException - the exceptionpublic CommitImageUploadResponse uploadImages(ApplyImageUploadRequest request, List<byte[]> imageDatas) throws Exception
IImageXServiceuploadImages in interface IImageXServicerequest - the apply upload requestimageDatas - image data arrayException - the exceptionpublic CommitImageUploadResponse uploadImages(ApplyImageUploadRequest request, List<InputStream> content, List<Long> size) throws Exception
IImageXServiceuploadImages in interface IImageXServicerequest - upload requestcontent - image datasize - image sizeException - the exceptionpublic String getUploadToken(Map<String,String> params) throws Exception
IImageXServicegetUploadToken in interface IImageXServiceparams - the paramsException - the exceptionpublic SecurityToken2 getUploadSts2(List<String> serviceIds) throws Exception
IImageXServicegetUploadSts2 in interface IImageXServiceserviceIds - service id list allowed to upload image toException - the exceptionpublic SecurityToken2 getUploadSts2WithExpire(List<String> serviceIds, long expire) throws Exception
IImageXServicegetUploadSts2WithExpire in interface IImageXServiceserviceIds - service id list allowed to upload image toexpire - expire time in millisecondsException - the exceptionpublic SecurityToken2 getUploadSts2WithKeyPtn(List<String> serviceIds, long expire, String keyPtn) throws Exception
IImageXServicegetUploadSts2WithKeyPtn in interface IImageXServiceserviceIds - service id list allowed to upload image toexpire - expire time in millisecondskeyPtn - upload store key pattern, * for no restriction. default to empty.Exception - the exceptionpublic DeleteImageResp deleteImages(DeleteImageReq req) throws Exception
IImageXServicedeleteImages in interface IImageXServicereq - delete image reqException - the exceptionpublic GetImageUploadFileResponse getImageUploadFile(GetImageUploadFileRequest req) throws Exception
IImageXServicegetImageUploadFile in interface IImageXServicereq - argsException - the exceptionpublic GetImageUploadFilesResponse getImageUploadFiles(GetImageUploadFilesRequest req) throws Exception
IImageXServicegetImageUploadFiles in interface IImageXServicereq - argsException - the exceptionpublic UpdateImageFilesResponse updateImageUrls(UpdateImageFilesRequest req) throws Exception
IImageXServiceupdateImageUrls in interface IImageXServicereq - update image urls reqException - the exceptionpublic CommonResponse getImageX(String action, Map<String,String> param) throws Exception
IImageXServicegetImageX in interface IImageXServiceaction - api action nameparam - api query paramException - the exceptionpublic CommonResponse postImageX(String action, Map<String,String> param, Object req) throws Exception
IImageXServicepostImageX in interface IImageXServiceaction - api action nameparam - api query paramreq - api json paramException - the exceptionpublic FetchImageUrlResponse fetchImageUrl(FetchImageUrlRequest request) throws Exception
IImageXServicefetchImageUrl in interface IImageXServicerequest - url to fetchException - the exceptionpublic GetImageOCRResponse<?> getImageOCR(GetImageOCRRequest param) throws Exception
IImageXServicegetImageOCR in interface IImageXServiceparam - api query paramException - the exceptionpublic EmbedImageHmResponse embedImageHm(EmbedImageHmRequest req) throws Exception
IImageXServiceembedImageHm in interface IImageXServicereq - embed image hm requestException - the exceptionpublic ExtractImageHmResponse extractImageHm(ExtractImageHmRequest req) throws Exception
IImageXServiceextractImageHm in interface IImageXServicereq - extract hidden mark from imageException - the exceptionpublic GetImageSegmentResponse getImageSegment(GetImageSegmentRequest req) throws Exception
IImageXServicegetImageSegment in interface IImageXServicereq - get image segment requestException - the exceptionpublic GetImageEraseModelsResponse getImageEraseModels(GetImageEraseModelsRequest req) throws Exception
IImageXServicegetImageEraseModels in interface IImageXServicereq - get image erase models requestException - the exceptionpublic GetImageEraseResultResponse getImageEraseResult(GetImageEraseResultRequest req) throws Exception
IImageXServicegetImageEraseResult in interface IImageXServicereq - get image erase resultException - the exceptionpublic GetImageQualityResponse getImageQuality(GetImageQualityRequest req) throws Exception
IImageXServicegetImageQuality in interface IImageXServicereq - request argsException - the exceptionpublic GetImageBgFillResultResponse getImageBgFillResult(GetImageBgFillResultRequest req) throws Exception
IImageXServicegetImageBgFillResult in interface IImageXServicereq - request argsException - the exceptionpublic GetImageDuplicateDetectionSyncResponse getImageDuplicateDetectionSync(GetImageDuplicateDetectionSyncRequest req) throws Exception
IImageXServicegetImageDuplicateDetectionSync in interface IImageXServicereq - request argsException - the exceptionpublic GetImageDuplicateDetectionAsyncResponse getImageDuplicateDetectionAsync(GetImageDuplicateDetectionAsyncRequest req) throws Exception
IImageXServicegetImageDuplicateDetectionAsync in interface IImageXServicereq - request argsException - the exceptionpublic GetDeduplicateTaskStatusResponse getDeduplicateTaskStatus(GetDeduplicateTaskStatusRequest req) throws Exception
IImageXServicegetDeduplicateTaskStatus in interface IImageXServicereq - request argsException - the exceptionpublic GetDenoisingImageResponse getDenoisingImage(GetDenoisingImageRequest req) throws Exception
IImageXServicegetDenoisingImage in interface IImageXServicereq - request argsException - the exceptionpublic GetImageComicResultResponse getImageComicResult(GetImageComicResultRequest req) throws Exception
IImageXServicegetImageComicResult in interface IImageXServicereq - request argsException - the exceptionpublic GetImageSuperResolutionResultResponse getImageSuperResolutionResult(GetImageSuperResolutionResultRequest req) throws Exception
IImageXServicegetImageSuperResolutionResult in interface IImageXServicereq - request argsException - the exceptionpublic GetImageSmartCropResultResponse getImageSmartCropResult(GetImageSmartCropResultRequest req) throws Exception
IImageXServicegetImageSmartCropResult in interface IImageXServicereq - request argsException - the exceptionpublic GetLicensePlateDetectionResponse getLicensePlateDetection(GetLicensePlateDetectionRequest req) throws Exception
IImageXServicegetLicensePlateDetection in interface IImageXServicereq - request argsException - the exceptionpublic GetImagePSDetectionResponse getImagePSDetection(GetImagePSDetectionRequest req) throws Exception
IImageXServicegetImagePSDetection in interface IImageXServicereq - request argsException - the exceptionpublic GetPrivateImageTypeResponse getPrivateImageType(GetPrivateImageTypeRequest req) throws Exception
IImageXServicegetPrivateImageType in interface IImageXServicereq - request argsException - the exceptionpublic GetImageEnhanceResultResponse getImageEnhanceResult(GetImageEnhanceResultRequest req) throws Exception
IImageXServicegetImageEnhanceResult in interface IImageXServicereq - request argsException - the exceptionpublic GetImageStyleResultResponse getImageStyleResult(GetImageStyleResultRequest req) throws Exception
IImageXServicegetImageStyleResult in interface IImageXServicereq - request argsException - the exceptionCopyright © 2023. All rights reserved.