Documentation ¶
Overview ¶
Autogenerated by Thrift Compiler (0.9.2) DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
Index ¶
- Variables
- func GetImgFeature(hostport string, image []byte) (features []float64, err error)
- type DeepLearningArgs
- type DeepLearningResult
- func (p *DeepLearningResult) GetSuccess() *Result_
- func (p *DeepLearningResult) IsSetSuccess() bool
- func (p *DeepLearningResult) Read(iprot thrift.TProtocol) error
- func (p *DeepLearningResult) ReadField0(iprot thrift.TProtocol) error
- func (p *DeepLearningResult) String() string
- func (p *DeepLearningResult) Write(oprot thrift.TProtocol) error
- type FeatureArgs
- type FeatureResult
- func (p *FeatureResult) GetSuccess() []float64
- func (p *FeatureResult) IsSetSuccess() bool
- func (p *FeatureResult) Read(iprot thrift.TProtocol) error
- func (p *FeatureResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FeatureResult) String() string
- func (p *FeatureResult) Write(oprot thrift.TProtocol) error
- type Handler
- type HandlerClient
- type HandlerProcessor
- func (p *HandlerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *HandlerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *HandlerProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *HandlerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type ObjectDetectionDLArgs
- func (p *ObjectDetectionDLArgs) GetImage() []byte
- func (p *ObjectDetectionDLArgs) Read(iprot thrift.TProtocol) error
- func (p *ObjectDetectionDLArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ObjectDetectionDLArgs) String() string
- func (p *ObjectDetectionDLArgs) Write(oprot thrift.TProtocol) error
- type ObjectDetectionDLResult
- func (p *ObjectDetectionDLResult) GetSuccess() *Result_
- func (p *ObjectDetectionDLResult) IsSetSuccess() bool
- func (p *ObjectDetectionDLResult) Read(iprot thrift.TProtocol) error
- func (p *ObjectDetectionDLResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ObjectDetectionDLResult) String() string
- func (p *ObjectDetectionDLResult) Write(oprot thrift.TProtocol) error
- type Result_
- func (p *Result_) GetDesc() string
- func (p *Result_) GetRet() []byte
- func (p *Result_) Read(iprot thrift.TProtocol) error
- func (p *Result_) ReadField1(iprot thrift.TProtocol) error
- func (p *Result_) ReadField2(iprot thrift.TProtocol) error
- func (p *Result_) String() string
- func (p *Result_) Write(oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var FeatureResult_Success_DEFAULT []float64
View Source
var GoUnusedProtection__ int
Functions ¶
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) ReadField1 ¶
func (p *DeepLearningArgs) ReadField1(iprot thrift.TProtocol) error
func (*DeepLearningArgs) String ¶
func (p *DeepLearningArgs) String() string
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) ReadField0 ¶
func (p *DeepLearningResult) ReadField0(iprot thrift.TProtocol) error
func (*DeepLearningResult) String ¶
func (p *DeepLearningResult) String() string
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) ReadField1 ¶
func (p *FeatureArgs) ReadField1(iprot thrift.TProtocol) error
func (*FeatureArgs) String ¶
func (p *FeatureArgs) String() string
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) ReadField0 ¶
func (p *FeatureResult) ReadField0(iprot thrift.TProtocol) error
func (*FeatureResult) String ¶
func (p *FeatureResult) String() string
type HandlerClient ¶
type HandlerClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewHandlerClientFactory ¶
func NewHandlerClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *HandlerClient
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 (p *ObjectDetectionDLArgs) Read(iprot thrift.TProtocol) error
func (*ObjectDetectionDLArgs) ReadField1 ¶
func (p *ObjectDetectionDLArgs) ReadField1(iprot thrift.TProtocol) error
func (*ObjectDetectionDLArgs) String ¶
func (p *ObjectDetectionDLArgs) String() string
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 (p *ObjectDetectionDLResult) Read(iprot thrift.TProtocol) error
func (*ObjectDetectionDLResult) ReadField0 ¶
func (p *ObjectDetectionDLResult) ReadField0(iprot thrift.TProtocol) error
func (*ObjectDetectionDLResult) String ¶
func (p *ObjectDetectionDLResult) String() string
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 NewResult_ ¶
func NewResult_() *Result_
func ObjectDetectionDL ¶
深度学习做物体检测
Click to show internal directories.
Click to hide internal directories.