Documentation
¶
Index ¶
Constants ¶
View Source
const APIVersion = "2018-11-06"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) Evaluation ¶
func (c *Client) Evaluation(request *EvaluationRequest) (response *EvaluationResponse, err error)
速算题目批改接口,根据用户上传的图片或图片的URL识别图片中的数学算式,进而给出算式的正确性评估。
type EvaluationRequest ¶
type EvaluationRequest struct {
*tchttp.BaseRequest
// 图片唯一标识,一张图片一个SessionId;
SessionId *string `json:"SessionId" name:"SessionId"`
// 图片数据,需要使用base64对图片的二进制数据进行编码;
Image *string `json:"Image" name:"Image"`
}
func NewEvaluationRequest ¶
func NewEvaluationRequest() (request *EvaluationRequest)
func (*EvaluationRequest) FromJsonString ¶
func (r *EvaluationRequest) FromJsonString(s string) error
func (*EvaluationRequest) ToJsonString ¶
func (r *EvaluationRequest) ToJsonString() string
type EvaluationResponse ¶
type EvaluationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 图片唯一标识,一张图片一个SessionId;
SessionId *string `json:"SessionId" name:"SessionId"`
// 识别出的算式信息;
Items []*Item `json:"Items" name:"Items" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewEvaluationResponse ¶
func NewEvaluationResponse() (response *EvaluationResponse)
func (*EvaluationResponse) FromJsonString ¶
func (r *EvaluationResponse) FromJsonString(s string) error
func (*EvaluationResponse) ToJsonString ¶
func (r *EvaluationResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.