Documentation ¶
Index ¶
- type CheckResultItemsBody
- type CheckResultResultBody
- type CheckTaskJobsItemsBody
- type ImageBatchModerationReq
- type ImageBatchModerationReqCategories
- type ImageBatchModerationReqCategoriesEnum
- type ImageBatchModerationResultBody
- type ImageDetectionReq
- type ImageDetectionReqCategories
- type ImageDetectionReqCategoriesEnum
- type ImageDetectionResultBody
- type ImageDetectionResultDetail
- type ImageDetectionResultDetailFaceDetail
- type ImageDetectionResultDetailPolitics
- type ImageDetectionResultSimpleDetail
- type RunCheckResultRequest
- type RunCheckResultResponse
- type RunCheckTaskJobsRequest
- type RunCheckTaskJobsRequestStatus
- type RunCheckTaskJobsRequestStatusEnum
- type RunCheckTaskJobsResponse
- type RunImageBatchModerationRequest
- type RunImageBatchModerationResponse
- type RunImageModerationRequest
- type RunImageModerationResponse
- type RunTaskSumbitRequest
- type RunTaskSumbitResponse
- type RunTextModerationRequest
- type RunTextModerationResponse
- type TaskSumbitReq
- type TaskSumbitReqCategories
- type TaskSumbitReqCategoriesEnum
- type TaskSumbitResultBody
- type TextDetectionItemsReq
- type TextDetectionReq
- type TextDetectionResponseResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResultItemsBody ¶
type CheckResultItemsBody struct { Url *string `json:"url,omitempty"` Suggestion *string `json:"suggestion,omitempty"` Detail *ImageDetectionResultDetail `json:"detail,omitempty"` CategorySuggestions map[string]string `json:"category_suggestions,omitempty"` }
func (CheckResultItemsBody) String ¶
func (o CheckResultItemsBody) String() string
type CheckResultResultBody ¶
type CheckResultResultBody struct { JobId *string `json:"job_id,omitempty"` Status *string `json:"status,omitempty"` CreateTime *string `json:"create_time,omitempty"` UpdateTime *string `json:"update_time,omitempty"` Items *[]CheckResultItemsBody `json:"items,omitempty"` }
func (CheckResultResultBody) String ¶
func (o CheckResultResultBody) String() string
type CheckTaskJobsItemsBody ¶
type CheckTaskJobsItemsBody struct { JobId *string `json:"job_id,omitempty"` Status *string `json:"status,omitempty"` CreateTime *string `json:"create_time,omitempty"` UpdateTime *string `json:"update_time,omitempty"` }
func (CheckTaskJobsItemsBody) String ¶
func (o CheckTaskJobsItemsBody) String() string
type ImageBatchModerationReq ¶
type ImageBatchModerationReq struct { Urls []string `json:"urls"` Categories *[]ImageBatchModerationReqCategories `json:"categories,omitempty"` Threshold *float64 `json:"threshold,omitempty"` }
func (ImageBatchModerationReq) String ¶
func (o ImageBatchModerationReq) String() string
type ImageBatchModerationReqCategories ¶
type ImageBatchModerationReqCategories struct {
// contains filtered or unexported fields
}
func (ImageBatchModerationReqCategories) MarshalJSON ¶
func (c ImageBatchModerationReqCategories) MarshalJSON() ([]byte, error)
func (*ImageBatchModerationReqCategories) UnmarshalJSON ¶
func (c *ImageBatchModerationReqCategories) UnmarshalJSON(b []byte) error
type ImageBatchModerationReqCategoriesEnum ¶
type ImageBatchModerationReqCategoriesEnum struct { POLITICS ImageBatchModerationReqCategories TERRORISM ImageBatchModerationReqCategories PORN ImageBatchModerationReqCategories AD ImageBatchModerationReqCategories ALL ImageBatchModerationReqCategories }
func GetImageBatchModerationReqCategoriesEnum ¶
func GetImageBatchModerationReqCategoriesEnum() ImageBatchModerationReqCategoriesEnum
type ImageBatchModerationResultBody ¶
type ImageBatchModerationResultBody struct { Url *string `json:"url,omitempty"` Suggestion *string `json:"suggestion,omitempty"` Detail *ImageDetectionResultDetail `json:"detail,omitempty"` CategorySuggestions *interface{} `json:"category_suggestions,omitempty"` }
func (ImageBatchModerationResultBody) String ¶
func (o ImageBatchModerationResultBody) String() string
type ImageDetectionReq ¶
type ImageDetectionReq struct { Url *string `json:"url,omitempty"` Image string `json:"image,omitempty"` ModerationRule *string `json:"moderation_rule,omitempty"` Categories *[]ImageDetectionReqCategories `json:"categories,omitempty"` AdGlossaries *[]string `json:"ad_glossaries,omitempty"` Threshold *float32 `json:"threshold,omitempty"` }
func (ImageDetectionReq) String ¶
func (o ImageDetectionReq) String() string
type ImageDetectionReqCategories ¶
type ImageDetectionReqCategories struct {
// contains filtered or unexported fields
}
func (ImageDetectionReqCategories) MarshalJSON ¶
func (c ImageDetectionReqCategories) MarshalJSON() ([]byte, error)
func (*ImageDetectionReqCategories) UnmarshalJSON ¶
func (c *ImageDetectionReqCategories) UnmarshalJSON(b []byte) error
type ImageDetectionReqCategoriesEnum ¶
type ImageDetectionReqCategoriesEnum struct { POLITICS ImageDetectionReqCategories TERRORISM ImageDetectionReqCategories PORN ImageDetectionReqCategories AD ImageDetectionReqCategories ALL ImageDetectionReqCategories }
func GetImageDetectionReqCategoriesEnum ¶
func GetImageDetectionReqCategoriesEnum() ImageDetectionReqCategoriesEnum
type ImageDetectionResultBody ¶
type ImageDetectionResultBody struct { Detail *ImageDetectionResultDetail `json:"detail,omitempty"` Suggestion *string `json:"suggestion,omitempty"` CategorySuggestions map[string]string `json:"category_suggestions,omitempty"` }
func (ImageDetectionResultBody) String ¶
func (o ImageDetectionResultBody) String() string
type ImageDetectionResultDetail ¶
type ImageDetectionResultDetail struct { Politics *[]ImageDetectionResultDetailPolitics `json:"politics,omitempty"` Porn *[]ImageDetectionResultSimpleDetail `json:"porn,omitempty"` Terrorism *[]ImageDetectionResultSimpleDetail `json:"terrorism,omitempty"` Ad *[]ImageDetectionResultSimpleDetail `json:"ad,omitempty"` }
func (ImageDetectionResultDetail) String ¶
func (o ImageDetectionResultDetail) String() string
type ImageDetectionResultDetailFaceDetail ¶
type ImageDetectionResultDetailFaceDetail struct { H *int32 `json:"h,omitempty"` W *int32 `json:"w,omitempty"` X *int32 `json:"x,omitempty"` Y *int32 `json:"y,omitempty"` }
func (ImageDetectionResultDetailFaceDetail) String ¶
func (o ImageDetectionResultDetailFaceDetail) String() string
type ImageDetectionResultDetailPolitics ¶
type ImageDetectionResultDetailPolitics struct { Confidence *float32 `json:"confidence,omitempty"` Label *string `json:"label,omitempty"` FaceDetail *ImageDetectionResultDetailFaceDetail `json:"face_detail,omitempty"` }
func (ImageDetectionResultDetailPolitics) String ¶
func (o ImageDetectionResultDetailPolitics) String() string
type ImageDetectionResultSimpleDetail ¶
type ImageDetectionResultSimpleDetail struct { Confidence *float32 `json:"confidence,omitempty"` Label *string `json:"label,omitempty"` }
反黄,暴恐,广告检测详情
func (ImageDetectionResultSimpleDetail) String ¶
func (o ImageDetectionResultSimpleDetail) String() string
type RunCheckResultRequest ¶
type RunCheckResultRequest struct {
JobId string `json:"job_id"`
}
Request Object
func (RunCheckResultRequest) String ¶
func (o RunCheckResultRequest) String() string
type RunCheckResultResponse ¶
type RunCheckResultResponse struct { Result *CheckResultResultBody `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunCheckResultResponse) String ¶
func (o RunCheckResultResponse) String() string
type RunCheckTaskJobsRequest ¶
type RunCheckTaskJobsRequest struct {
Status *RunCheckTaskJobsRequestStatus `json:"status,omitempty"`
}
Request Object
func (RunCheckTaskJobsRequest) String ¶
func (o RunCheckTaskJobsRequest) String() string
type RunCheckTaskJobsRequestStatus ¶
type RunCheckTaskJobsRequestStatus struct {
// contains filtered or unexported fields
}
func (RunCheckTaskJobsRequestStatus) MarshalJSON ¶
func (c RunCheckTaskJobsRequestStatus) MarshalJSON() ([]byte, error)
func (*RunCheckTaskJobsRequestStatus) UnmarshalJSON ¶
func (c *RunCheckTaskJobsRequestStatus) UnmarshalJSON(b []byte) error
type RunCheckTaskJobsRequestStatusEnum ¶
type RunCheckTaskJobsRequestStatusEnum struct { CREATED RunCheckTaskJobsRequestStatus RUNNING RunCheckTaskJobsRequestStatus FINISH RunCheckTaskJobsRequestStatus FAILED RunCheckTaskJobsRequestStatus }
func GetRunCheckTaskJobsRequestStatusEnum ¶
func GetRunCheckTaskJobsRequestStatusEnum() RunCheckTaskJobsRequestStatusEnum
type RunCheckTaskJobsResponse ¶
type RunCheckTaskJobsResponse struct { Result *[]CheckTaskJobsItemsBody `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunCheckTaskJobsResponse) String ¶
func (o RunCheckTaskJobsResponse) String() string
type RunImageBatchModerationRequest ¶
type RunImageBatchModerationRequest struct {
Body *ImageBatchModerationReq `json:"body,omitempty"`
}
Request Object
func (RunImageBatchModerationRequest) String ¶
func (o RunImageBatchModerationRequest) String() string
type RunImageBatchModerationResponse ¶
type RunImageBatchModerationResponse struct { Result *[]ImageBatchModerationResultBody `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunImageBatchModerationResponse) String ¶
func (o RunImageBatchModerationResponse) String() string
type RunImageModerationRequest ¶
type RunImageModerationRequest struct {
Body *ImageDetectionReq `json:"body,omitempty"`
}
Request Object
func (RunImageModerationRequest) String ¶
func (o RunImageModerationRequest) String() string
type RunImageModerationResponse ¶
type RunImageModerationResponse struct { Result *ImageDetectionResultBody `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunImageModerationResponse) String ¶
func (o RunImageModerationResponse) String() string
type RunTaskSumbitRequest ¶
type RunTaskSumbitRequest struct {
Body *TaskSumbitReq `json:"body,omitempty"`
}
Request Object
func (RunTaskSumbitRequest) String ¶
func (o RunTaskSumbitRequest) String() string
type RunTaskSumbitResponse ¶
type RunTaskSumbitResponse struct { Result *TaskSumbitResultBody `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunTaskSumbitResponse) String ¶
func (o RunTaskSumbitResponse) String() string
type RunTextModerationRequest ¶
type RunTextModerationRequest struct {
Body *TextDetectionReq `json:"body,omitempty"`
}
Request Object
func (RunTextModerationRequest) String ¶
func (o RunTextModerationRequest) String() string
type RunTextModerationResponse ¶
type RunTextModerationResponse struct { Result *TextDetectionResponseResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunTextModerationResponse) String ¶
func (o RunTextModerationResponse) String() string
type TaskSumbitReq ¶
type TaskSumbitReq struct { Urls []string `json:"urls"` Categories *[]TaskSumbitReqCategories `json:"categories,omitempty"` }
func (TaskSumbitReq) String ¶
func (o TaskSumbitReq) String() string
type TaskSumbitReqCategories ¶
type TaskSumbitReqCategories struct {
// contains filtered or unexported fields
}
func (TaskSumbitReqCategories) MarshalJSON ¶
func (c TaskSumbitReqCategories) MarshalJSON() ([]byte, error)
func (*TaskSumbitReqCategories) UnmarshalJSON ¶
func (c *TaskSumbitReqCategories) UnmarshalJSON(b []byte) error
type TaskSumbitReqCategoriesEnum ¶
type TaskSumbitReqCategoriesEnum struct { POLITICS TaskSumbitReqCategories PORN TaskSumbitReqCategories TERRORISM TaskSumbitReqCategories }
func GetTaskSumbitReqCategoriesEnum ¶
func GetTaskSumbitReqCategoriesEnum() TaskSumbitReqCategoriesEnum
type TaskSumbitResultBody ¶
type TaskSumbitResultBody struct {
JobId *string `json:"job_id,omitempty"`
}
func (TaskSumbitResultBody) String ¶
func (o TaskSumbitResultBody) String() string
type TextDetectionItemsReq ¶
type TextDetectionItemsReq struct { Text string `json:"text"` Type *string `json:"type,omitempty"` }
func (TextDetectionItemsReq) String ¶
func (o TextDetectionItemsReq) String() string
type TextDetectionReq ¶
type TextDetectionReq struct { Categories *[]string `json:"categories,omitempty"` Items []TextDetectionItemsReq `json:"items"` }
func (TextDetectionReq) String ¶
func (o TextDetectionReq) String() string
type TextDetectionResponseResult ¶
type TextDetectionResponseResult struct { Suggestion *string `json:"suggestion,omitempty"` Detail *interface{} `json:"detail,omitempty"` }
调用成功时表示调用结果。 调用失败时无此字段。
func (TextDetectionResponseResult) String ¶
func (o TextDetectionResponseResult) String() string
Source Files ¶
- model_check_result_items_body.go
- model_check_result_result_body.go
- model_check_task_jobs_items_body.go
- model_image_batch_moderation_req.go
- model_image_batch_moderation_result_body.go
- model_image_detection_req.go
- model_image_detection_result_body.go
- model_image_detection_result_detail.go
- model_image_detection_result_detail_face_detail.go
- model_image_detection_result_detail_politics.go
- model_image_detection_result_simple_detail.go
- model_run_check_result_request.go
- model_run_check_result_response.go
- model_run_check_task_jobs_request.go
- model_run_check_task_jobs_response.go
- model_run_image_batch_moderation_request.go
- model_run_image_batch_moderation_response.go
- model_run_image_moderation_request.go
- model_run_image_moderation_response.go
- model_run_task_sumbit_request.go
- model_run_task_sumbit_response.go
- model_run_text_moderation_request.go
- model_run_text_moderation_response.go
- model_task_sumbit_req.go
- model_task_sumbit_result_body.go
- model_text_detection_items_req.go
- model_text_detection_req.go
- model_text_detection_response_result.go
Click to show internal directories.
Click to hide internal directories.