zhangmeng
2019-12-17 d78b0016f7b96f486fd4af84e889d541c3dba0eb
work/sdk/facetrack.go
@@ -30,15 +30,14 @@
*/
import "C"
import (
   "analysis/goconv"
   "analysis/logo"
   "analysis/work"
   "context"
   "time"
   "unsafe"
   "analysis/gosdk"
   "basic.com/pubsub/protomsg.git"
   "basic.com/valib/gosdk.git"
   "github.com/gogo/protobuf/proto"
)
@@ -156,8 +155,8 @@
   for {
      select {
      case <-ctx.Done():
         goconv.Free()
         return
      case rMsg := <-in:
         if !validRemoteMessage(rMsg, typ) {
@@ -175,12 +174,8 @@
         // conv to bgr24 and resize
         imgW, imgH := int(i.Width), int(i.Height)
         bgrData := goconv.YUV2BGR(i.Data, imgW, imgH)
         if bgrData == nil {
            ejectResult(nil, rMsg, out)
            continue
         }
         img := gosdk.SDKImage{Data: bgrData, Width: imgW, Height: imgH}
         img := gosdk.SDKImage{Data: i.Data, Width: imgW, Height: imgH}
         detect := gosdk.FaceTrackSimple(img, dtchn)