Versions in this module Expand all Collapse all v1 v1.0.3 Nov 12, 2018 v1.0.2 Nov 10, 2018 Changes in this version + type AaiEvilaudioResponse struct + Data struct{ ... } type TxAi + func (ai *TxAi) AaiEvilaudioForUrl(speechId, speechURL string) (*AaiEvilaudioResponse, error) + func (ai *TxAi) HttpGet(url string, u url.Values) (respBody []byte, err error) v1.0.1 Aug 20, 2018 Changes in this version + const BaseURL + var Errors = map[int]error + var NlpWordcomComTypeNames = map[int]string + var NlpWordcomIntentNames = map[int]string + var NlpWordnerNames = map[int]string + var NlpWordposNames = map[int]string + var VisionObjectrNames = map[int]string + var VisionScenerNames = map[int]string + func AaiDetectkeywordHandleCallback(body []byte) (*AaiDetectkeywordResponse, *BaseResponse, error) + func AaiWxasrlongHandleCallback(body []byte) (*AaiWxasrlongResponse, *BaseResponse, error) + func GetError(ret int) error + type AaiAsrResponse struct + Data struct{ ... } + type AaiAsrsResponse struct + Data struct{ ... } + type AaiAudioType = int + const AaiAudioAMR + const AaiAudioMP3 + const AaiAudioPCM + const AaiAudioSILK + const AaiAudioSPEEX + const AaiAudioWAV + type AaiDetectkeywordResponse struct + Data struct{ ... } + type AaiTtaModelType = int + const AaiTtaModelType0 + const AaiTtaModelType1 + const AaiTtaModelType2 + const AaiTtaModelType6 + type AaiTtaResponse struct + Data struct{ ... } + type AaiTtsFormatType = int + const AaiTtsFormatMP3 + const AaiTtsFormatPCM + const AaiTtsFormatWAV + type AaiTtsResponse struct + Data struct{ ... } + type AaiTtsSpeakerType = int + const AaiTtsSpeaker1 + const AaiTtsSpeaker5 + const AaiTtsSpeaker6 + const AaiTtsSpeaker7 + type AaiWxasrlongResponse struct + Data struct{ ... } + type AaiWxasrsResponse struct + Data struct{ ... } + type BaseResponse struct + Msg string + Ret int + func (resp *BaseResponse) GetRet() int + type BaseResponseInterface interface + GetRet func() int + type FaceAddfaceResponse struct + Data struct{ ... } + type FaceDelfaceResponse struct + Data struct{ ... } + type FaceDelpersonResponse struct + Data struct{ ... } + type FaceDetectcrossagefaceResponse struct + Data struct{ ... } + type FaceDetectfaceResponse struct + Data struct{ ... } + type FaceDetectmultifaceResponse struct + Data struct{ ... } + type FaceFacecompareResponse struct + Data struct{ ... } + type FaceFaceidentifyResponse struct + Data struct{ ... } + type FaceFaceshapeResponse struct + Data struct{ ... } + type FaceFaceverifyResponse struct + Data struct{ ... } + type FaceGetfaceidsResponse struct + Data struct{ ... } + type FaceGetfaceinfoResponse struct + Data struct{ ... } + type FaceGetgroupidsResponse struct + Data struct{ ... } + type FaceGetinfoResponse struct + Data struct{ ... } + type FaceGetpersonidsResponse struct + Data struct{ ... } + type FaceNewpersonResponse struct + Data struct{ ... } + type FaceSetinfoResponse struct + Data struct{ ... } + type FormatAudioType int + const AudioAAC + const AudioAMR + const AudioMP3 + const AudioPCM + const AudioSILK + type ImageFoodResponse struct + Data struct{ ... } + type ImageFuzzyResponse struct + Data struct{ ... } + type ImageTagResponse struct + Data struct{ ... } + type ImageTerrorismResponse struct + Blood int + Crowd int + Data struct{ ... } + Fire int + Flag int + Guns int + Knife int + Other int + Terrorists int + type ItemList struct + Item string + Itemconf float64 + Itemcoord []struct{ ... } + Itemstring string + Words []struct{ ... } + type Lang = string + const Auto + const De + const En + const Es + const Fr + const Id + const It + const Jp + const Kr + const Ms + const Pt + const Ru + const Th + const Tr + const Vi + const Zh + type LangType uint + const LangAuto + const LangDeToEn + const LangEnToDe + const LangEnToZh + const LangEsToZh + const LangFrToZh + const LangJpToZh + const LangViToZh + const LangZhToEn + const LangZhToEs + const LangZhToFr + const LangZhToJp + const LangZhToKr + const LangZhToVi + const LangZhToZhYY + const LangZhYYToZh + type NlpImagetranslateResponse struct + Data struct{ ... } + type NlpSpeechtranslateResponse struct + Data struct{ ... } + type NlpTextchatResponse struct + Data struct{ ... } + type NlpTextdetectResponse struct + Data struct{ ... } + type NlpTextpolarResponse struct + Data struct{ ... } + type NlpTexttransResponse struct + Data struct{ ... } + type NlpTexttranslateResponse struct + Data struct{ ... } + type NlpWordcomResponse struct + Data struct{ ... } + type NlpWordnerResponse struct + Data struct{ ... } + type NlpWordposResponse struct + Data struct{ ... } + type NlpWordsegResponse struct + Data struct{ ... } + type NlpWordsynResponse struct + Data struct{ ... } + type OcrIDCardResponse struct + Data struct{ ... } + type OcrResponse struct + Data struct{ ... } + type PtuResponse struct + Data struct{ ... } + type SceneType = string + const SceneDoc + const SceneWord + type TxAi struct + AppID string + AppKey string + func New(appID, appKey string, debug bool) *TxAi + func (ai *TxAi) AaiAsrForBase64(speech string, format AaiAudioType, rate ...int) (*AaiAsrResponse, error) + func (ai *TxAi) AaiAsrForPath(speechPath string, format AaiAudioType, rate ...int) (*AaiAsrResponse, error) + func (ai *TxAi) AaiAsrsForBase64(speechChunk string, format AaiAudioType, seq, length, end int, speechId string, ...) (*AaiAsrsResponse, error) + func (ai *TxAi) AaiAsrsForPath(speechChunkPath string, format AaiAudioType, seq, end int, speechId string, ...) (*AaiAsrsResponse, error) + func (ai *TxAi) AaiDetectkeywordForBase64(speech, speechURL string, format AaiAudioType, callbackURL string, ...) (*AaiDetectkeywordResponse, error) + func (ai *TxAi) AaiDetectkeywordForPath(speechPath, speechURL string, format AaiAudioType, callbackURL string, ...) (*AaiDetectkeywordResponse, error) + func (ai *TxAi) AaiTtaForText(text string, modelType AaiTtaModelType, speed int) (*AaiTtaResponse, error) + func (ai *TxAi) AaiTtsForText(text string, speaker AaiTtsSpeakerType, format AaiTtsFormatType, ...) (*AaiTtsResponse, error) + func (ai *TxAi) AaiWxasrlongForBase64(speech string, format AaiAudioType, callbackURL, speechURL string) (*AaiWxasrlongResponse, error) + func (ai *TxAi) AaiWxasrlongForPath(speechPath string, format AaiAudioType, callbackURL, speechURL string) (*AaiWxasrlongResponse, error) + func (ai *TxAi) AaiWxasrsForBase64(speechChunk string, format AaiAudioType, rate, bits, seq, length, end int, ...) (*AaiWxasrsResponse, error) + func (ai *TxAi) AaiWxasrsForPath(speechChunkPath string, format AaiAudioType, rate, bits, seq, end int, ...) (*AaiWxasrsResponse, error) + func (ai *TxAi) FaceAddMultiplefaceForPath(personId, tag string, imagePaths ...string) (*FaceAddfaceResponse, error) + func (ai *TxAi) FaceAddfaceForBase64(images, personId, tag string) (*FaceAddfaceResponse, error) + func (ai *TxAi) FaceAddfaceForPath(imagePath, personId, tag string) (*FaceAddfaceResponse, error) + func (ai *TxAi) FaceDelfaceForPersonId(personId string, faceIds ...string) (*FaceDelfaceResponse, error) + func (ai *TxAi) FaceDelpersonForPersonId(personId string) (*FaceDelpersonResponse, error) + func (ai *TxAi) FaceDetectcrossagefaceForBase64(sourceImage, targetImage string) (*FaceDetectcrossagefaceResponse, error) + func (ai *TxAi) FaceDetectcrossagefaceForPath(sourceImagePath, targetImagePath string) (*FaceDetectcrossagefaceResponse, error) + func (ai *TxAi) FaceDetectfaceForBase64(image string, modes ...int) (*FaceDetectfaceResponse, error) + func (ai *TxAi) FaceDetectfaceForPath(imagePath string, modes ...int) (*FaceDetectfaceResponse, error) + func (ai *TxAi) FaceDetectmultifaceForBase64(image string) (*FaceDetectmultifaceResponse, error) + func (ai *TxAi) FaceDetectmultifaceForPath(imagePath string) (*FaceDetectmultifaceResponse, error) + func (ai *TxAi) FaceFacecompareForBase64(imageA, imageB string) (*FaceFacecompareResponse, error) + func (ai *TxAi) FaceFacecompareForPath(imageAPath, imageBPath string) (*FaceFacecompareResponse, error) + func (ai *TxAi) FaceFaceidentifyForBase64(image string, groupId string, topns ...int) (*FaceFaceidentifyResponse, error) + func (ai *TxAi) FaceFaceidentifyForPath(imagePath string, groupId string, topns ...int) (*FaceFaceidentifyResponse, error) + func (ai *TxAi) FaceFaceshapeForBase64(image string, modes ...int) (*FaceFaceshapeResponse, error) + func (ai *TxAi) FaceFaceshapeForPath(imagePath string, modes ...int) (*FaceFaceshapeResponse, error) + func (ai *TxAi) FaceFaceverifyForBase64(image, personId string) (*FaceFaceverifyResponse, error) + func (ai *TxAi) FaceFaceverifyForPath(imagePath, personId string) (*FaceFaceverifyResponse, error) + func (ai *TxAi) FaceGetfaceidsAllForPersonId(personId string) (*FaceGetfaceidsResponse, error) + func (ai *TxAi) FaceGetfaceinfoForFaceId(faceId string) (*FaceGetfaceinfoResponse, error) + func (ai *TxAi) FaceGetgroupidsAll() (*FaceGetgroupidsResponse, error) + func (ai *TxAi) FaceGetinfoForPersonId(personId string) (*FaceGetinfoResponse, error) + func (ai *TxAi) FaceGetpersonidsAllForGroupId(groupId string) (*FaceGetpersonidsResponse, error) + func (ai *TxAi) FaceNewpersonForBase64(groupIds, personId, image, personName string, tags ...string) (*FaceNewpersonResponse, error) + func (ai *TxAi) FaceNewpersonForPath(groupIds, personId, imagePath, personName string, tags ...string) (*FaceNewpersonResponse, error) + func (ai *TxAi) FaceSetinfoForPersonId(personId, personName, tag string) (*FaceSetinfoResponse, error) + func (ai *TxAi) HttpPost(url string, u url.Values) (respBody []byte, err error) + func (ai *TxAi) ImageFoodForBase64(image string) (*ImageFoodResponse, error) + func (ai *TxAi) ImageFoodForPath(imagePath string) (*ImageFoodResponse, error) + func (ai *TxAi) ImageFuzzyForBase64(image string) (*ImageFuzzyResponse, error) + func (ai *TxAi) ImageFuzzyForPath(imagePath string) (*ImageFuzzyResponse, error) + func (ai *TxAi) ImageTagForBase64(image string) (*ImageTagResponse, error) + func (ai *TxAi) ImageTagForPath(imagePath string) (*ImageTagResponse, error) + func (ai *TxAi) ImageTerrorismForBase64(image string) (*ImageTerrorismResponse, error) + func (ai *TxAi) ImageTerrorismForPath(imagePath string) (*ImageTerrorismResponse, error) + func (ai *TxAi) NlpImagetranslateForBase64(image, sessionId string, scene SceneType, source, target Lang) (*NlpImagetranslateResponse, error) + func (ai *TxAi) NlpImagetranslateForPath(imagePath, sessionId, scene string, source, target Lang) (*NlpImagetranslateResponse, error) + func (ai *TxAi) NlpSpeechtranslateForBase64(speechChunk, sessionId string, format FormatAudioType, seq, end uint, ...) (*NlpSpeechtranslateResponse, error) + func (ai *TxAi) NlpSpeechtranslateForPath(speechChunkPath, sessionId string, format FormatAudioType, seq, end uint, ...) (*NlpSpeechtranslateResponse, error) + func (ai *TxAi) NlpTextchatForText(session, question string) (*NlpTextchatResponse, error) + func (ai *TxAi) NlpTextdetectForText(text string, force bool, candidateLangs ...Lang) (*NlpTextdetectResponse, error) + func (ai *TxAi) NlpTextpolarForText(text string) (*NlpTextpolarResponse, error) + func (ai *TxAi) NlpTexttransForText(text string, langTypes ...LangType) (*NlpTexttransResponse, error) + func (ai *TxAi) NlpTexttranslateForText(text string, source, target Lang) (*NlpTexttranslateResponse, error) + func (ai *TxAi) NlpWordcomForText(text string) (*NlpWordcomResponse, error) + func (ai *TxAi) NlpWordnerForText(text string) (*NlpWordnerResponse, error) + func (ai *TxAi) NlpWordposForText(text string) (*NlpWordposResponse, error) + func (ai *TxAi) NlpWordsegForText(text string) (*NlpWordsegResponse, error) + func (ai *TxAi) NlpWordsynForText(text string) (*NlpWordsynResponse, error) + func (ai *TxAi) OcrBcocrForBase64(image string) (*OcrResponse, error) + func (ai *TxAi) OcrBcocrForPath(imagePath string) (*OcrResponse, error) + func (ai *TxAi) OcrBizlicenseocrForBase64(image string) (*OcrResponse, error) + func (ai *TxAi) OcrBizlicenseocrForPath(imagePath string) (*OcrResponse, error) + func (ai *TxAi) OcrCreditcardocrForBase64(image string) (*OcrResponse, error) + func (ai *TxAi) OcrCreditcardocrForPath(imagePath string) (*OcrResponse, error) + func (ai *TxAi) OcrDriverlicenseocrForBase64(t int, image string) (*OcrResponse, error) + func (ai *TxAi) OcrDriverlicenseocrForPath(t int, imagePath string) (*OcrResponse, error) + func (ai *TxAi) OcrGeneralocrForBase64(image string) (*OcrResponse, error) + func (ai *TxAi) OcrGeneralocrForPath(imagePath string) (*OcrResponse, error) + func (ai *TxAi) OcrHandwritingocrForBase64(image string) (*OcrResponse, error) + func (ai *TxAi) OcrHandwritingocrForPath(imagePath string) (*OcrResponse, error) + func (ai *TxAi) OcrHandwritingocrForURL(imageURL string) (*OcrResponse, error) + func (ai *TxAi) OcrIdcardocrForBase64(cardType int, image string) (*OcrIDCardResponse, error) + func (ai *TxAi) OcrIdcardocrForPath(cardType int, imagePath string) (*OcrIDCardResponse, error) + func (ai *TxAi) OcrPlateocrForBase64(image string) (*OcrResponse, error) + func (ai *TxAi) OcrPlateocrForPath(imagePath string) (*OcrResponse, error) + func (ai *TxAi) OcrPlateocrForURL(imageURL string) (*OcrResponse, error) + func (ai *TxAi) PtuFaceageForBase64(image string) (*PtuResponse, error) + func (ai *TxAi) PtuFaceageForPath(imagePath string) (*PtuResponse, error) + func (ai *TxAi) PtuFacecosmeticForBase64(image string, cosmetic int) (*PtuResponse, error) + func (ai *TxAi) PtuFacecosmeticForPath(imagePath string, cosmetic int) (*PtuResponse, error) + func (ai *TxAi) PtuFacedecorationForBase64(image string, decoration int) (*PtuResponse, error) + func (ai *TxAi) PtuFacedecorationForPath(imagePath string, decoration int) (*PtuResponse, error) + func (ai *TxAi) PtuFacemergeForBase64(image string, model int) (*PtuResponse, error) + func (ai *TxAi) PtuFacemergeForPath(imagePath string, model int) (*PtuResponse, error) + func (ai *TxAi) PtuFacestickerForBase64(image string, sticker int) (*PtuResponse, error) + func (ai *TxAi) PtuFacestickerForPath(imagePath string, sticker int) (*PtuResponse, error) + func (ai *TxAi) PtuImgfilterForBase64(image string, filter int) (*PtuResponse, error) + func (ai *TxAi) PtuImgfilterForPath(imagePath string, filter int) (*PtuResponse, error) + func (ai *TxAi) RequestAPI(uri string, u url.Values, response BaseResponseInterface) error + func (ai *TxAi) SetDebug(debug bool) + func (ai *TxAi) SetRequestTimeout(d time.Duration) + func (ai *TxAi) URLToBase64(imageURL string) (string, error) + func (ai *TxAi) VisionImgfilterForBase64(image, sessionId string, filter int) (*PtuResponse, error) + func (ai *TxAi) VisionImgfilterForPath(imagePath, sessionId string, filter int) (*PtuResponse, error) + func (ai *TxAi) VisionImgtotextForBase64(image, sessionId string) (*VisionImgtotextResponse, error) + func (ai *TxAi) VisionImgtotextForPath(imagePath, sessionId string) (*VisionImgtotextResponse, error) + func (ai *TxAi) VisionObjectrForBase64(image string, format, topk int) (*VisionObjectrResponse, error) + func (ai *TxAi) VisionObjectrForPath(imagePath string, format, topk int) (*VisionObjectrResponse, error) + func (ai *TxAi) VisionPornForBase64(image string) (*VisionPornResponse, error) + func (ai *TxAi) VisionPornForPath(imagePath string) (*VisionPornResponse, error) + func (ai *TxAi) VisionScenerForBase64(image string, format, topk int) (*VisionScenerResponse, error) + func (ai *TxAi) VisionScenerForPath(imagePath string, format, topk int) (*VisionScenerResponse, error) + type VisionImgtotextResponse struct + Data struct{ ... } + type VisionObjectrResponse struct + Data struct{ ... } + type VisionPornResponse struct + Data struct{ ... } + Level int + type VisionScenerResponse struct + Data struct{ ... }