v20181106

package
v2.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-11-06"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

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

type Item

type Item struct {

	// 识别的算式是否正确
	Item *string `json:"Item" name:"Item"`

	// 识别的算式
	ItemString *string `json:"ItemString" name:"ItemString"`

	// 识别的算式在图片上的位置信息
	ItemCoord *ItemCoord `json:"ItemCoord" name:"ItemCoord"`
}

type ItemCoord

type ItemCoord struct {

	// 算式高度
	Height *int64 `json:"Height" name:"Height"`

	// 算式宽度
	Width *int64 `json:"Width" name:"Width"`

	// 算式图的左上角横坐标
	X *int64 `json:"X" name:"X"`

	// 算式图的左上角纵坐标
	Y *int64 `json:"Y" name:"Y"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL