Documentation ¶
Index ¶
- Variables
- func RegisterUiDetectionServiceServer(s *grpc.Server, srv UiDetectionServiceServer)
- type BoundingBox
- func (*BoundingBox) Descriptor() ([]byte, []int)deprecated
- func (x *BoundingBox) GetBottom() int32
- func (x *BoundingBox) GetLeft() int32
- func (x *BoundingBox) GetRight() int32
- func (x *BoundingBox) GetText() string
- func (x *BoundingBox) GetTop() int32
- func (*BoundingBox) ProtoMessage()
- func (x *BoundingBox) ProtoReflect() protoreflect.Message
- func (x *BoundingBox) Reset()
- func (x *BoundingBox) String() string
- type CustomIconDetectionRequest
- func (*CustomIconDetectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CustomIconDetectionRequest) GetIconPng() []byte
- func (x *CustomIconDetectionRequest) GetMatchCount() int32
- func (x *CustomIconDetectionRequest) GetMinConfidenceThreshold() float64
- func (*CustomIconDetectionRequest) ProtoMessage()
- func (x *CustomIconDetectionRequest) ProtoReflect() protoreflect.Message
- func (x *CustomIconDetectionRequest) Reset()
- func (x *CustomIconDetectionRequest) String() string
- type DetectionRequest
- func (*DetectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DetectionRequest) GetCustomIconDetectionRequest() *CustomIconDetectionRequest
- func (m *DetectionRequest) GetDetectionRequestType() isDetectionRequest_DetectionRequestType
- func (x *DetectionRequest) GetTextBlockDetectionRequest() *TextBlockDetectionRequest
- func (x *DetectionRequest) GetWordDetectionRequest() *WordDetectionRequest
- func (*DetectionRequest) ProtoMessage()
- func (x *DetectionRequest) ProtoReflect() protoreflect.Message
- func (x *DetectionRequest) Reset()
- func (x *DetectionRequest) String() string
- type DetectionRequest_CustomIconDetectionRequest
- type DetectionRequest_TextBlockDetectionRequest
- type DetectionRequest_WordDetectionRequest
- type TextBlockDetectionRequest
- func (*TextBlockDetectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TextBlockDetectionRequest) GetDisableApproxMatch() bool
- func (x *TextBlockDetectionRequest) GetMaxEditDistance() int32
- func (x *TextBlockDetectionRequest) GetRegexMode() bool
- func (x *TextBlockDetectionRequest) GetSpecifiedWordsOnly() bool
- func (x *TextBlockDetectionRequest) GetWords() []string
- func (*TextBlockDetectionRequest) ProtoMessage()
- func (x *TextBlockDetectionRequest) ProtoReflect() protoreflect.Message
- func (x *TextBlockDetectionRequest) Reset()
- func (x *TextBlockDetectionRequest) String() string
- type UiDetectionRequest
- func (*UiDetectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UiDetectionRequest) GetImagePng() []byte
- func (x *UiDetectionRequest) GetRequest() *DetectionRequest
- func (x *UiDetectionRequest) GetResizeImage() bool
- func (*UiDetectionRequest) ProtoMessage()
- func (x *UiDetectionRequest) ProtoReflect() protoreflect.Message
- func (x *UiDetectionRequest) Reset()
- func (x *UiDetectionRequest) String() string
- type UiDetectionResponse
- func (*UiDetectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UiDetectionResponse) GetBoundingBoxes() []*BoundingBox
- func (*UiDetectionResponse) ProtoMessage()
- func (x *UiDetectionResponse) ProtoReflect() protoreflect.Message
- func (x *UiDetectionResponse) Reset()
- func (x *UiDetectionResponse) String() string
- type UiDetectionServiceClient
- type UiDetectionServiceServer
- type UnimplementedUiDetectionServiceServer
- type WordDetectionRequest
- func (*WordDetectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WordDetectionRequest) GetDisableApproxMatch() bool
- func (x *WordDetectionRequest) GetMaxEditDistance() int32
- func (x *WordDetectionRequest) GetRegexMode() bool
- func (x *WordDetectionRequest) GetWord() string
- func (*WordDetectionRequest) ProtoMessage()
- func (x *WordDetectionRequest) ProtoReflect() protoreflect.Message
- func (x *WordDetectionRequest) Reset()
- func (x *WordDetectionRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_google_chromeos_uidetection_v1_ui_detection_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUiDetectionServiceServer ¶
func RegisterUiDetectionServiceServer(s *grpc.Server, srv UiDetectionServiceServer)
Types ¶
type BoundingBox ¶
type BoundingBox struct { // The text found in the bounding box. Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // The y-coordinate of the top-left point. Top int32 `protobuf:"varint,2,opt,name=top,proto3" json:"top,omitempty"` // The x-coordinate of the top-left point. Left int32 `protobuf:"varint,3,opt,name=left,proto3" json:"left,omitempty"` // The y-coordinate of the bottom-right point. Bottom int32 `protobuf:"varint,4,opt,name=bottom,proto3" json:"bottom,omitempty"` // The x-coordinate of the bottom-right point. Right int32 `protobuf:"varint,5,opt,name=right,proto3" json:"right,omitempty"` // contains filtered or unexported fields }
The location of a UI element. A bounding box is reprensented by its top-left point [left, top] and its bottom-right point [right, bottom].
func (*BoundingBox) Descriptor
deprecated
func (*BoundingBox) Descriptor() ([]byte, []int)
Deprecated: Use BoundingBox.ProtoReflect.Descriptor instead.
func (*BoundingBox) GetBottom ¶
func (x *BoundingBox) GetBottom() int32
func (*BoundingBox) GetLeft ¶
func (x *BoundingBox) GetLeft() int32
func (*BoundingBox) GetRight ¶
func (x *BoundingBox) GetRight() int32
func (*BoundingBox) GetText ¶
func (x *BoundingBox) GetText() string
func (*BoundingBox) GetTop ¶
func (x *BoundingBox) GetTop() int32
func (*BoundingBox) ProtoMessage ¶
func (*BoundingBox) ProtoMessage()
func (*BoundingBox) ProtoReflect ¶
func (x *BoundingBox) ProtoReflect() protoreflect.Message
func (*BoundingBox) Reset ¶
func (x *BoundingBox) Reset()
func (*BoundingBox) String ¶
func (x *BoundingBox) String() string
type CustomIconDetectionRequest ¶
type CustomIconDetectionRequest struct { // Required. Required field that represents an icon in PNG format. IconPng []byte `protobuf:"bytes,1,opt,name=icon_png,json=iconPng,proto3" json:"icon_png,omitempty"` // Set match_count to -1 to not limit the number of matches. MatchCount int32 `protobuf:"varint,2,opt,name=match_count,json=matchCount,proto3" json:"match_count,omitempty"` // Confidence threshold in the range [0.0, 1.0] below which the matches will // be considered as non-existent. MinConfidenceThreshold float64 `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
Detection type for custom icon detection.
func (*CustomIconDetectionRequest) Descriptor
deprecated
func (*CustomIconDetectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CustomIconDetectionRequest.ProtoReflect.Descriptor instead.
func (*CustomIconDetectionRequest) GetIconPng ¶
func (x *CustomIconDetectionRequest) GetIconPng() []byte
func (*CustomIconDetectionRequest) GetMatchCount ¶
func (x *CustomIconDetectionRequest) GetMatchCount() int32
func (*CustomIconDetectionRequest) GetMinConfidenceThreshold ¶
func (x *CustomIconDetectionRequest) GetMinConfidenceThreshold() float64
func (*CustomIconDetectionRequest) ProtoMessage ¶
func (*CustomIconDetectionRequest) ProtoMessage()
func (*CustomIconDetectionRequest) ProtoReflect ¶
func (x *CustomIconDetectionRequest) ProtoReflect() protoreflect.Message
func (*CustomIconDetectionRequest) Reset ¶
func (x *CustomIconDetectionRequest) Reset()
func (*CustomIconDetectionRequest) String ¶
func (x *CustomIconDetectionRequest) String() string
type DetectionRequest ¶
type DetectionRequest struct { // Types that are assignable to DetectionRequestType: // // *DetectionRequest_WordDetectionRequest // *DetectionRequest_TextBlockDetectionRequest // *DetectionRequest_CustomIconDetectionRequest DetectionRequestType isDetectionRequest_DetectionRequestType `protobuf_oneof:"detection_request_type"` // contains filtered or unexported fields }
Detection type specifies what to detect in the image.
func (*DetectionRequest) Descriptor
deprecated
func (*DetectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DetectionRequest.ProtoReflect.Descriptor instead.
func (*DetectionRequest) GetCustomIconDetectionRequest ¶
func (x *DetectionRequest) GetCustomIconDetectionRequest() *CustomIconDetectionRequest
func (*DetectionRequest) GetDetectionRequestType ¶
func (m *DetectionRequest) GetDetectionRequestType() isDetectionRequest_DetectionRequestType
func (*DetectionRequest) GetTextBlockDetectionRequest ¶
func (x *DetectionRequest) GetTextBlockDetectionRequest() *TextBlockDetectionRequest
func (*DetectionRequest) GetWordDetectionRequest ¶
func (x *DetectionRequest) GetWordDetectionRequest() *WordDetectionRequest
func (*DetectionRequest) ProtoMessage ¶
func (*DetectionRequest) ProtoMessage()
func (*DetectionRequest) ProtoReflect ¶
func (x *DetectionRequest) ProtoReflect() protoreflect.Message
func (*DetectionRequest) Reset ¶
func (x *DetectionRequest) Reset()
func (*DetectionRequest) String ¶
func (x *DetectionRequest) String() string
type DetectionRequest_CustomIconDetectionRequest ¶
type DetectionRequest_CustomIconDetectionRequest struct { // Detection type for custom icon detection. CustomIconDetectionRequest *CustomIconDetectionRequest `protobuf:"bytes,3,opt,name=custom_icon_detection_request,json=customIconDetectionRequest,proto3,oneof"` }
type DetectionRequest_TextBlockDetectionRequest ¶
type DetectionRequest_TextBlockDetectionRequest struct { // Detection type for text block detection. TextBlockDetectionRequest *TextBlockDetectionRequest `protobuf:"bytes,2,opt,name=text_block_detection_request,json=textBlockDetectionRequest,proto3,oneof"` }
type DetectionRequest_WordDetectionRequest ¶
type DetectionRequest_WordDetectionRequest struct { // Detection type for word detection. WordDetectionRequest *WordDetectionRequest `protobuf:"bytes,1,opt,name=word_detection_request,json=wordDetectionRequest,proto3,oneof"` }
type TextBlockDetectionRequest ¶
type TextBlockDetectionRequest struct { // Required. The text block consisting a list of words to locate in the image. Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"` // Indicating whether the query string is a regex or not. RegexMode bool `protobuf:"varint,2,opt,name=regex_mode,json=regexMode,proto3" json:"regex_mode,omitempty"` // Indicating whether the detection is an approximate match. DisableApproxMatch bool `protobuf:"varint,3,opt,name=disable_approx_match,json=disableApproxMatch,proto3" json:"disable_approx_match,omitempty"` // Levenshtein distance threshold. // Applicable only if regex_mode is False. MaxEditDistance *int32 `protobuf:"varint,4,opt,name=max_edit_distance,json=maxEditDistance,proto3,oneof" json:"max_edit_distance,omitempty"` // Indicating whether the detection result should only contain the specified // words. SpecifiedWordsOnly bool `protobuf:"varint,5,opt,name=specified_words_only,json=specifiedWordsOnly,proto3" json:"specified_words_only,omitempty"` // contains filtered or unexported fields }
Detection type for text block detection.
func (*TextBlockDetectionRequest) Descriptor
deprecated
func (*TextBlockDetectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use TextBlockDetectionRequest.ProtoReflect.Descriptor instead.
func (*TextBlockDetectionRequest) GetDisableApproxMatch ¶
func (x *TextBlockDetectionRequest) GetDisableApproxMatch() bool
func (*TextBlockDetectionRequest) GetMaxEditDistance ¶
func (x *TextBlockDetectionRequest) GetMaxEditDistance() int32
func (*TextBlockDetectionRequest) GetRegexMode ¶
func (x *TextBlockDetectionRequest) GetRegexMode() bool
func (*TextBlockDetectionRequest) GetSpecifiedWordsOnly ¶
func (x *TextBlockDetectionRequest) GetSpecifiedWordsOnly() bool
func (*TextBlockDetectionRequest) GetWords ¶
func (x *TextBlockDetectionRequest) GetWords() []string
func (*TextBlockDetectionRequest) ProtoMessage ¶
func (*TextBlockDetectionRequest) ProtoMessage()
func (*TextBlockDetectionRequest) ProtoReflect ¶
func (x *TextBlockDetectionRequest) ProtoReflect() protoreflect.Message
func (*TextBlockDetectionRequest) Reset ¶
func (x *TextBlockDetectionRequest) Reset()
func (*TextBlockDetectionRequest) String ¶
func (x *TextBlockDetectionRequest) String() string
type UiDetectionRequest ¶
type UiDetectionRequest struct { // Required. Required field that represents a PNG image. ImagePng []byte `protobuf:"bytes,1,opt,name=image_png,json=imagePng,proto3" json:"image_png,omitempty"` // Required. Required field that indicates the detection type. Request *DetectionRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` // Indicates whether to resize the image when detecting. ResizeImage *bool `protobuf:"varint,3,opt,name=resize_image,json=resizeImage,proto3,oneof" json:"resize_image,omitempty"` // contains filtered or unexported fields }
Request message for UI detection.
func (*UiDetectionRequest) Descriptor
deprecated
func (*UiDetectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UiDetectionRequest.ProtoReflect.Descriptor instead.
func (*UiDetectionRequest) GetImagePng ¶
func (x *UiDetectionRequest) GetImagePng() []byte
func (*UiDetectionRequest) GetRequest ¶
func (x *UiDetectionRequest) GetRequest() *DetectionRequest
func (*UiDetectionRequest) GetResizeImage ¶
func (x *UiDetectionRequest) GetResizeImage() bool
func (*UiDetectionRequest) ProtoMessage ¶
func (*UiDetectionRequest) ProtoMessage()
func (*UiDetectionRequest) ProtoReflect ¶
func (x *UiDetectionRequest) ProtoReflect() protoreflect.Message
func (*UiDetectionRequest) Reset ¶
func (x *UiDetectionRequest) Reset()
func (*UiDetectionRequest) String ¶
func (x *UiDetectionRequest) String() string
type UiDetectionResponse ¶
type UiDetectionResponse struct { // Locations of matching UI elements. BoundingBoxes []*BoundingBox `protobuf:"bytes,1,rep,name=bounding_boxes,json=boundingBoxes,proto3" json:"bounding_boxes,omitempty"` // contains filtered or unexported fields }
Response message for UI detection.
func (*UiDetectionResponse) Descriptor
deprecated
func (*UiDetectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UiDetectionResponse.ProtoReflect.Descriptor instead.
func (*UiDetectionResponse) GetBoundingBoxes ¶
func (x *UiDetectionResponse) GetBoundingBoxes() []*BoundingBox
func (*UiDetectionResponse) ProtoMessage ¶
func (*UiDetectionResponse) ProtoMessage()
func (*UiDetectionResponse) ProtoReflect ¶
func (x *UiDetectionResponse) ProtoReflect() protoreflect.Message
func (*UiDetectionResponse) Reset ¶
func (x *UiDetectionResponse) Reset()
func (*UiDetectionResponse) String ¶
func (x *UiDetectionResponse) String() string
type UiDetectionServiceClient ¶
type UiDetectionServiceClient interface { // Runs the detection. ExecuteDetection(ctx context.Context, in *UiDetectionRequest, opts ...grpc.CallOption) (*UiDetectionResponse, error) }
UiDetectionServiceClient is the client API for UiDetectionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUiDetectionServiceClient ¶
func NewUiDetectionServiceClient(cc grpc.ClientConnInterface) UiDetectionServiceClient
type UiDetectionServiceServer ¶
type UiDetectionServiceServer interface { // Runs the detection. ExecuteDetection(context.Context, *UiDetectionRequest) (*UiDetectionResponse, error) }
UiDetectionServiceServer is the server API for UiDetectionService service.
type UnimplementedUiDetectionServiceServer ¶
type UnimplementedUiDetectionServiceServer struct { }
UnimplementedUiDetectionServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUiDetectionServiceServer) ExecuteDetection ¶
func (*UnimplementedUiDetectionServiceServer) ExecuteDetection(context.Context, *UiDetectionRequest) (*UiDetectionResponse, error)
type WordDetectionRequest ¶
type WordDetectionRequest struct { // Required. The word to locate in the image. Word string `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"` // Indicating whether the query string is a regex or not. RegexMode bool `protobuf:"varint,2,opt,name=regex_mode,json=regexMode,proto3" json:"regex_mode,omitempty"` // Indicating whether the detection is an approximate match. DisableApproxMatch bool `protobuf:"varint,3,opt,name=disable_approx_match,json=disableApproxMatch,proto3" json:"disable_approx_match,omitempty"` // Levenshtein distance threshold. // Applicable only if regex_mode is False. MaxEditDistance *int32 `protobuf:"varint,4,opt,name=max_edit_distance,json=maxEditDistance,proto3,oneof" json:"max_edit_distance,omitempty"` // contains filtered or unexported fields }
Detection type for word detection.
func (*WordDetectionRequest) Descriptor
deprecated
func (*WordDetectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use WordDetectionRequest.ProtoReflect.Descriptor instead.
func (*WordDetectionRequest) GetDisableApproxMatch ¶
func (x *WordDetectionRequest) GetDisableApproxMatch() bool
func (*WordDetectionRequest) GetMaxEditDistance ¶
func (x *WordDetectionRequest) GetMaxEditDistance() int32
func (*WordDetectionRequest) GetRegexMode ¶
func (x *WordDetectionRequest) GetRegexMode() bool
func (*WordDetectionRequest) GetWord ¶
func (x *WordDetectionRequest) GetWord() string
func (*WordDetectionRequest) ProtoMessage ¶
func (*WordDetectionRequest) ProtoMessage()
func (*WordDetectionRequest) ProtoReflect ¶
func (x *WordDetectionRequest) ProtoReflect() protoreflect.Message
func (*WordDetectionRequest) Reset ¶
func (x *WordDetectionRequest) Reset()
func (*WordDetectionRequest) String ¶
func (x *WordDetectionRequest) String() string