---
panlei
2019-07-02 0c8dffc024fc2f8f6b185a2b85387309e4e62aca
insertdata/insertDataToEs.go
@@ -126,9 +126,9 @@
            }
            i := protomsg.Image{}
            err = proto.Unmarshal(bdata, &i)
            i1 := protomsg.Image{}
            i1 = util.Subimg(i.Data, int(face.Location.X), int(face.Location.Y), int(face.Location.X+face.Location.Width), int(face.Location.Y+face.Location.Height))
            resp, err := util.PostFormBufferData(weedfsUrl, i1, uuid.NewV4().String())
            log.Println("======================================看看这个框:",face.Location)
            bytes := util.Subimg(i.Data, int(face.Location.X), int(face.Location.Y), int(face.Location.X+face.Location.Width), int(face.Location.Y+face.Location.Height))
            resp, err := util.PostFormBufferData1(weedfsUrl, bytes, uuid.NewV4().String())
            if err != nil {
               log.Println("上传小图出错")
            }