From 54e26e896cafc1e63d6626b9eb0f6bfcbf0bbb0b Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期二, 19 十一月 2019 16:30:11 +0800
Subject: [PATCH] add cloud plate detect
---
sdk.pb.go | 923 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
sdk.proto | 28 +
2 files changed, 888 insertions(+), 63 deletions(-)
diff --git a/sdk.pb.go b/sdk.pb.go
index b1b88cd..d36f76b 100644
--- a/sdk.pb.go
+++ b/sdk.pb.go
@@ -1082,6 +1082,191 @@
return nil
}
+// cloud
+type PlateCloudID struct {
+ License string `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
+ RcLocation *Rect `protobuf:"bytes,2,opt,name=rcLocation,proto3" json:"rcLocation,omitempty"`
+ NConfidence int32 `protobuf:"varint,3,opt,name=nConfidence,proto3" json:"nConfidence,omitempty"`
+ NType int32 `protobuf:"varint,4,opt,name=nType,proto3" json:"nType,omitempty"`
+ NDirection int32 `protobuf:"varint,5,opt,name=nDirection,proto3" json:"nDirection,omitempty"`
+ NCarColor int32 `protobuf:"varint,6,opt,name=nCarColor,proto3" json:"nCarColor,omitempty"`
+ NCarColor1 int32 `protobuf:"varint,7,opt,name=nCarColor1,proto3" json:"nCarColor1,omitempty"`
+ NCarBright int32 `protobuf:"varint,8,opt,name=nCarBright,proto3" json:"nCarBright,omitempty"`
+ FrameNo int32 `protobuf:"varint,9,opt,name=frameNo,proto3" json:"frameNo,omitempty"`
+ FaceWidth int32 `protobuf:"varint,10,opt,name=faceWidth,proto3" json:"faceWidth,omitempty"`
+ FaceHeight int32 `protobuf:"varint,11,opt,name=faceHeight,proto3" json:"faceHeight,omitempty"`
+ GrayFaceFlag int32 `protobuf:"varint,12,opt,name=grayFaceFlag,proto3" json:"grayFaceFlag,omitempty"`
+ CharNum int32 `protobuf:"varint,13,opt,name=charNum,proto3" json:"charNum,omitempty"`
+}
+
+func (m *PlateCloudID) Reset() { *m = PlateCloudID{} }
+func (m *PlateCloudID) String() string { return proto.CompactTextString(m) }
+func (*PlateCloudID) ProtoMessage() {}
+func (*PlateCloudID) Descriptor() ([]byte, []int) {
+ return fileDescriptor_70decb0fb6f436df, []int{14}
+}
+func (m *PlateCloudID) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *PlateCloudID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_PlateCloudID.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *PlateCloudID) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_PlateCloudID.Merge(m, src)
+}
+func (m *PlateCloudID) XXX_Size() int {
+ return m.Size()
+}
+func (m *PlateCloudID) XXX_DiscardUnknown() {
+ xxx_messageInfo_PlateCloudID.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_PlateCloudID proto.InternalMessageInfo
+
+func (m *PlateCloudID) GetLicense() string {
+ if m != nil {
+ return m.License
+ }
+ return ""
+}
+
+func (m *PlateCloudID) GetRcLocation() *Rect {
+ if m != nil {
+ return m.RcLocation
+ }
+ return nil
+}
+
+func (m *PlateCloudID) GetNConfidence() int32 {
+ if m != nil {
+ return m.NConfidence
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetNType() int32 {
+ if m != nil {
+ return m.NType
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetNDirection() int32 {
+ if m != nil {
+ return m.NDirection
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetNCarColor() int32 {
+ if m != nil {
+ return m.NCarColor
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetNCarColor1() int32 {
+ if m != nil {
+ return m.NCarColor1
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetNCarBright() int32 {
+ if m != nil {
+ return m.NCarBright
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetFrameNo() int32 {
+ if m != nil {
+ return m.FrameNo
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetFaceWidth() int32 {
+ if m != nil {
+ return m.FaceWidth
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetFaceHeight() int32 {
+ if m != nil {
+ return m.FaceHeight
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetGrayFaceFlag() int32 {
+ if m != nil {
+ return m.GrayFaceFlag
+ }
+ return 0
+}
+
+func (m *PlateCloudID) GetCharNum() int32 {
+ if m != nil {
+ return m.CharNum
+ }
+ return 0
+}
+
+type PlateCloudIDResult struct {
+ Result []*PlateCloudID `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"`
+}
+
+func (m *PlateCloudIDResult) Reset() { *m = PlateCloudIDResult{} }
+func (m *PlateCloudIDResult) String() string { return proto.CompactTextString(m) }
+func (*PlateCloudIDResult) ProtoMessage() {}
+func (*PlateCloudIDResult) Descriptor() ([]byte, []int) {
+ return fileDescriptor_70decb0fb6f436df, []int{15}
+}
+func (m *PlateCloudIDResult) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *PlateCloudIDResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_PlateCloudIDResult.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *PlateCloudIDResult) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_PlateCloudIDResult.Merge(m, src)
+}
+func (m *PlateCloudIDResult) XXX_Size() int {
+ return m.Size()
+}
+func (m *PlateCloudIDResult) XXX_DiscardUnknown() {
+ xxx_messageInfo_PlateCloudIDResult.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_PlateCloudIDResult proto.InternalMessageInfo
+
+func (m *PlateCloudIDResult) GetResult() []*PlateCloudID {
+ if m != nil {
+ return m.Result
+ }
+ return nil
+}
+
func init() {
proto.RegisterType((*Image)(nil), "protomsg.Image")
proto.RegisterType((*FaceAngle)(nil), "protomsg.FaceAngle")
@@ -1097,74 +1282,85 @@
proto.RegisterType((*SoInfo)(nil), "protomsg.SoInfo")
proto.RegisterType((*PlateID)(nil), "protomsg.PlateID")
proto.RegisterType((*PlateIDResult)(nil), "protomsg.PlateIDResult")
+ proto.RegisterType((*PlateCloudID)(nil), "protomsg.PlateCloudID")
+ proto.RegisterType((*PlateCloudIDResult)(nil), "protomsg.PlateCloudIDResult")
}
func init() { proto.RegisterFile("sdk.proto", fileDescriptor_70decb0fb6f436df) }
var fileDescriptor_70decb0fb6f436df = []byte{
- // 992 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x6f, 0xdc, 0x44,
- 0x14, 0x8f, 0x77, 0xe3, 0xfd, 0xf3, 0x36, 0x4d, 0xd2, 0x49, 0x85, 0xac, 0x08, 0xad, 0x56, 0x06,
- 0xb5, 0x5b, 0x51, 0x42, 0x15, 0x10, 0x48, 0x9c, 0x20, 0xd9, 0x46, 0x5d, 0x29, 0x4d, 0xa3, 0xa1,
- 0x12, 0xe2, 0x38, 0x6b, 0xcf, 0xee, 0x3a, 0xb1, 0x3d, 0xc6, 0x9e, 0x55, 0xbb, 0xe2, 0x13, 0x70,
- 0xe3, 0x63, 0x71, 0xec, 0x91, 0x23, 0x4a, 0xe0, 0x23, 0x70, 0x47, 0xef, 0xcd, 0xf8, 0x4f, 0xc3,
- 0x96, 0x13, 0x47, 0x4e, 0x9e, 0xdf, 0x7b, 0x3f, 0xcf, 0xfb, 0xff, 0x6c, 0xe8, 0x17, 0xe1, 0xf5,
- 0x51, 0x96, 0x2b, 0xad, 0x58, 0x8f, 0x1e, 0x49, 0xb1, 0x38, 0x84, 0x99, 0x28, 0xa4, 0x91, 0xfa,
- 0x3f, 0x3b, 0xe0, 0x4e, 0x13, 0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f, 0x87, 0xce, 0x2f, 0x17, 0xc3, 0x6b, 0x6f, 0x2e, 0x86, 0xd7, 0x7e, 0xbf, 0x18, 0x5e, 0x9b,
+ 0xb7, 0xe9, 0x8f, 0x9f, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0x46, 0x9d, 0xa9, 0xfd, 0x85, 0x0b,
+ 0x00, 0x00,
}
func (m *Image) Marshal() (dAtA []byte, err error) {
@@ -1910,6 +2106,125 @@
return i, nil
}
+func (m *PlateCloudID) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalTo(dAtA)
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *PlateCloudID) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.License) > 0 {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(len(m.License)))
+ i += copy(dAtA[i:], m.License)
+ }
+ if m.RcLocation != nil {
+ dAtA[i] = 0x12
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.RcLocation.Size()))
+ n19, err19 := m.RcLocation.MarshalTo(dAtA[i:])
+ if err19 != nil {
+ return 0, err19
+ }
+ i += n19
+ }
+ if m.NConfidence != 0 {
+ dAtA[i] = 0x18
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.NConfidence))
+ }
+ if m.NType != 0 {
+ dAtA[i] = 0x20
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.NType))
+ }
+ if m.NDirection != 0 {
+ dAtA[i] = 0x28
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.NDirection))
+ }
+ if m.NCarColor != 0 {
+ dAtA[i] = 0x30
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.NCarColor))
+ }
+ if m.NCarColor1 != 0 {
+ dAtA[i] = 0x38
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.NCarColor1))
+ }
+ if m.NCarBright != 0 {
+ dAtA[i] = 0x40
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.NCarBright))
+ }
+ if m.FrameNo != 0 {
+ dAtA[i] = 0x48
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.FrameNo))
+ }
+ if m.FaceWidth != 0 {
+ dAtA[i] = 0x50
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.FaceWidth))
+ }
+ if m.FaceHeight != 0 {
+ dAtA[i] = 0x58
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.FaceHeight))
+ }
+ if m.GrayFaceFlag != 0 {
+ dAtA[i] = 0x60
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.GrayFaceFlag))
+ }
+ if m.CharNum != 0 {
+ dAtA[i] = 0x68
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.CharNum))
+ }
+ return i, nil
+}
+
+func (m *PlateCloudIDResult) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalTo(dAtA)
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *PlateCloudIDResult) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.Result) > 0 {
+ for _, msg := range m.Result {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(msg.Size()))
+ n, err := msg.MarshalTo(dAtA[i:])
+ if err != nil {
+ return 0, err
+ }
+ i += n
+ }
+ }
+ return i, nil
+}
+
func encodeVarintSdk(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
@@ -2286,6 +2601,71 @@
}
func (m *PlateIDResult) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Result) > 0 {
+ for _, e := range m.Result {
+ l = e.Size()
+ n += 1 + l + sovSdk(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *PlateCloudID) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.License)
+ if l > 0 {
+ n += 1 + l + sovSdk(uint64(l))
+ }
+ if m.RcLocation != nil {
+ l = m.RcLocation.Size()
+ n += 1 + l + sovSdk(uint64(l))
+ }
+ if m.NConfidence != 0 {
+ n += 1 + sovSdk(uint64(m.NConfidence))
+ }
+ if m.NType != 0 {
+ n += 1 + sovSdk(uint64(m.NType))
+ }
+ if m.NDirection != 0 {
+ n += 1 + sovSdk(uint64(m.NDirection))
+ }
+ if m.NCarColor != 0 {
+ n += 1 + sovSdk(uint64(m.NCarColor))
+ }
+ if m.NCarColor1 != 0 {
+ n += 1 + sovSdk(uint64(m.NCarColor1))
+ }
+ if m.NCarBright != 0 {
+ n += 1 + sovSdk(uint64(m.NCarBright))
+ }
+ if m.FrameNo != 0 {
+ n += 1 + sovSdk(uint64(m.FrameNo))
+ }
+ if m.FaceWidth != 0 {
+ n += 1 + sovSdk(uint64(m.FaceWidth))
+ }
+ if m.FaceHeight != 0 {
+ n += 1 + sovSdk(uint64(m.FaceHeight))
+ }
+ if m.GrayFaceFlag != 0 {
+ n += 1 + sovSdk(uint64(m.GrayFaceFlag))
+ }
+ if m.CharNum != 0 {
+ n += 1 + sovSdk(uint64(m.CharNum))
+ }
+ return n
+}
+
+func (m *PlateCloudIDResult) Size() (n int) {
if m == nil {
return 0
}
@@ -4972,6 +5352,423 @@
}
return nil
}
+func (m *PlateCloudID) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: PlateCloudID: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: PlateCloudID: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field License", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthSdk
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.License = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RcLocation", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthSdk
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.RcLocation == nil {
+ m.RcLocation = &Rect{}
+ }
+ if err := m.RcLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NConfidence", wireType)
+ }
+ m.NConfidence = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.NConfidence |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NType", wireType)
+ }
+ m.NType = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.NType |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NDirection", wireType)
+ }
+ m.NDirection = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.NDirection |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NCarColor", wireType)
+ }
+ m.NCarColor = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.NCarColor |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 7:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NCarColor1", wireType)
+ }
+ m.NCarColor1 = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.NCarColor1 |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 8:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NCarBright", wireType)
+ }
+ m.NCarBright = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.NCarBright |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 9:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FrameNo", wireType)
+ }
+ m.FrameNo = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.FrameNo |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 10:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FaceWidth", wireType)
+ }
+ m.FaceWidth = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.FaceWidth |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 11:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FaceHeight", wireType)
+ }
+ m.FaceHeight = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.FaceHeight |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 12:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GrayFaceFlag", wireType)
+ }
+ m.GrayFaceFlag = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.GrayFaceFlag |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 13:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CharNum", wireType)
+ }
+ m.CharNum = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.CharNum |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipSdk(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *PlateCloudIDResult) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: PlateCloudIDResult: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: PlateCloudIDResult: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthSdk
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Result = append(m.Result, &PlateCloudID{})
+ if err := m.Result[len(m.Result)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipSdk(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
func skipSdk(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
diff --git a/sdk.proto b/sdk.proto
index 244b417..a7a4977 100644
--- a/sdk.proto
+++ b/sdk.proto
@@ -114,4 +114,32 @@
}
message PlateIDResult {
repeated PlateID result = 1;
+}
+
+// cloud
+message PlateCloudID{
+ string license = 1;
+ Rect rcLocation = 2;
+ int32 nConfidence = 3;
+ int32 nType = 4;
+ int32 nDirection = 5;
+ int32 nCarColor = 6;
+ int32 nCarColor1 = 7;
+ int32 nCarBright = 8;
+ int32 frameNo = 9;
+ int32 faceWidth = 10;
+ int32 faceHeight = 11;
+ int32 grayFaceFlag = 12;
+ int32 charNum = 13;
+
+ // bytes X = 14;
+ // bytes Y = 15;
+ // int32 pResultBits = 16;
+ // bytes time = 17;
+ // repeated Rect charLocation = 18;
+ // repeated Rect charConfidence = 19;
+}
+
+message PlateCloudIDResult {
+ repeated PlateCloudID result = 1;
}
\ No newline at end of file
--
Gitblit v1.8.0