imagehandle

package
v0.0.0-...-fabc42a Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Autogenerated by Thrift Compiler (0.9.2) DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING

Index

Constants

This section is empty.

Variables

View Source
var FeatureResult_Success_DEFAULT []float64
View Source
var GoUnusedProtection__ int

Functions

func GetImgFeature

func GetImgFeature(hostport string, image []byte) (features []float64, err error)

获取图片的hsv特征

Types

type DeepLearningArgs

type DeepLearningArgs struct {
	Image []byte `thrift:"image,1" json:"image"`
}

func NewDeepLearningArgs

func NewDeepLearningArgs() *DeepLearningArgs

func (*DeepLearningArgs) GetImage

func (p *DeepLearningArgs) GetImage() []byte

func (*DeepLearningArgs) Read

func (p *DeepLearningArgs) Read(iprot thrift.TProtocol) error

func (*DeepLearningArgs) ReadField1

func (p *DeepLearningArgs) ReadField1(iprot thrift.TProtocol) error

func (*DeepLearningArgs) String

func (p *DeepLearningArgs) String() string

func (*DeepLearningArgs) Write

func (p *DeepLearningArgs) Write(oprot thrift.TProtocol) error

type DeepLearningResult

type DeepLearningResult struct {
	Success *Result_ `thrift:"success,0" json:"success"`
}

func NewDeepLearningResult

func NewDeepLearningResult() *DeepLearningResult

func (*DeepLearningResult) GetSuccess

func (p *DeepLearningResult) GetSuccess() *Result_

func (*DeepLearningResult) IsSetSuccess

func (p *DeepLearningResult) IsSetSuccess() bool

func (*DeepLearningResult) Read

func (p *DeepLearningResult) Read(iprot thrift.TProtocol) error

func (*DeepLearningResult) ReadField0

func (p *DeepLearningResult) ReadField0(iprot thrift.TProtocol) error

func (*DeepLearningResult) String

func (p *DeepLearningResult) String() string

func (*DeepLearningResult) Write

func (p *DeepLearningResult) Write(oprot thrift.TProtocol) error

type FeatureArgs

type FeatureArgs struct {
	Image []byte `thrift:"image,1" json:"image"`
}

func NewFeatureArgs

func NewFeatureArgs() *FeatureArgs

func (*FeatureArgs) GetImage

func (p *FeatureArgs) GetImage() []byte

func (*FeatureArgs) Read

func (p *FeatureArgs) Read(iprot thrift.TProtocol) error

func (*FeatureArgs) ReadField1

func (p *FeatureArgs) ReadField1(iprot thrift.TProtocol) error

func (*FeatureArgs) String

func (p *FeatureArgs) String() string

func (*FeatureArgs) Write

func (p *FeatureArgs) Write(oprot thrift.TProtocol) error

type FeatureResult

type FeatureResult struct {
	Success []float64 `thrift:"success,0" json:"success"`
}

func NewFeatureResult

func NewFeatureResult() *FeatureResult

func (*FeatureResult) GetSuccess

func (p *FeatureResult) GetSuccess() []float64

func (*FeatureResult) IsSetSuccess

func (p *FeatureResult) IsSetSuccess() bool

func (*FeatureResult) Read

func (p *FeatureResult) Read(iprot thrift.TProtocol) error

func (*FeatureResult) ReadField0

func (p *FeatureResult) ReadField0(iprot thrift.TProtocol) error

func (*FeatureResult) String

func (p *FeatureResult) String() string

func (*FeatureResult) Write

func (p *FeatureResult) Write(oprot thrift.TProtocol) error

type Handler

type Handler interface {
	// Parameters:
	//  - Image
	Feature(image []byte) (r []float64, err error)
	// Parameters:
	//  - Image
	DeepLearning(image []byte) (r *Result_, err error)
	// Parameters:
	//  - Image
	ObjectDetectionDL(image []byte) (r *Result_, err error)
}

type HandlerClient

type HandlerClient struct {
	Transport       thrift.TTransport
	ProtocolFactory thrift.TProtocolFactory
	InputProtocol   thrift.TProtocol
	OutputProtocol  thrift.TProtocol
	SeqId           int32
}

func NewHandlerClientProtocol

func NewHandlerClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *HandlerClient

func (*HandlerClient) DeepLearning

func (p *HandlerClient) DeepLearning(image []byte) (r *Result_, err error)

Parameters:

  • Image

func (*HandlerClient) Feature

func (p *HandlerClient) Feature(image []byte) (r []float64, err error)

Parameters:

  • Image

func (*HandlerClient) ObjectDetectionDL

func (p *HandlerClient) ObjectDetectionDL(image []byte) (r *Result_, err error)

Parameters:

  • Image

type HandlerProcessor

type HandlerProcessor struct {
	// contains filtered or unexported fields
}

func NewHandlerProcessor

func NewHandlerProcessor(handler Handler) *HandlerProcessor

func (*HandlerProcessor) AddToProcessorMap

func (p *HandlerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*HandlerProcessor) GetProcessorFunction

func (p *HandlerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*HandlerProcessor) Process

func (p *HandlerProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*HandlerProcessor) ProcessorMap

func (p *HandlerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type ObjectDetectionDLArgs

type ObjectDetectionDLArgs struct {
	Image []byte `thrift:"image,1" json:"image"`
}

func NewObjectDetectionDLArgs

func NewObjectDetectionDLArgs() *ObjectDetectionDLArgs

func (*ObjectDetectionDLArgs) GetImage

func (p *ObjectDetectionDLArgs) GetImage() []byte

func (*ObjectDetectionDLArgs) Read

func (*ObjectDetectionDLArgs) ReadField1

func (p *ObjectDetectionDLArgs) ReadField1(iprot thrift.TProtocol) error

func (*ObjectDetectionDLArgs) String

func (p *ObjectDetectionDLArgs) String() string

func (*ObjectDetectionDLArgs) Write

func (p *ObjectDetectionDLArgs) Write(oprot thrift.TProtocol) error

type ObjectDetectionDLResult

type ObjectDetectionDLResult struct {
	Success *Result_ `thrift:"success,0" json:"success"`
}

func NewObjectDetectionDLResult

func NewObjectDetectionDLResult() *ObjectDetectionDLResult

func (*ObjectDetectionDLResult) GetSuccess

func (p *ObjectDetectionDLResult) GetSuccess() *Result_

func (*ObjectDetectionDLResult) IsSetSuccess

func (p *ObjectDetectionDLResult) IsSetSuccess() bool

func (*ObjectDetectionDLResult) Read

func (*ObjectDetectionDLResult) ReadField0

func (p *ObjectDetectionDLResult) ReadField0(iprot thrift.TProtocol) error

func (*ObjectDetectionDLResult) String

func (p *ObjectDetectionDLResult) String() string

func (*ObjectDetectionDLResult) Write

type Result_

type Result_ struct {
	Desc string `thrift:"desc,1" json:"desc"`
	Ret  []byte `thrift:"ret,2" json:"ret"`
}
var DeepLearningResult_Success_DEFAULT *Result_
var ObjectDetectionDLResult_Success_DEFAULT *Result_

func DeepLearning

func DeepLearning(hostport string, image []byte) (r *Result_, err error)

深度学习

func NewResult_

func NewResult_() *Result_

func ObjectDetectionDL

func ObjectDetectionDL(hostport string, image []byte) (r *Result_, err error)

深度学习做物体检测

func (*Result_) GetDesc

func (p *Result_) GetDesc() string

func (*Result_) GetRet

func (p *Result_) GetRet() []byte

func (*Result_) Read

func (p *Result_) Read(iprot thrift.TProtocol) error

func (*Result_) ReadField1

func (p *Result_) ReadField1(iprot thrift.TProtocol) error

func (*Result_) ReadField2

func (p *Result_) ReadField2(iprot thrift.TProtocol) error

func (*Result_) String

func (p *Result_) String() string

func (*Result_) Write

func (p *Result_) Write(oprot thrift.TProtocol) error

Jump to

Keyboard shortcuts

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