Video Analysis底层库拆分,sdk的go封装
zhangzengfei
2019-11-14 01f10af7d520bd93367f385f91e33849f5d8773e
gosdk.go
@@ -411,6 +411,43 @@
   return allObjs, newObjs
}
func DefaultPlateIDSDKConfig() *CPlateIDCfg{
   return &CPlateIDCfg{
      FastMemorySize: 32,
      MemorySize: 400,
      MinPlateWidth: 60,
      MaxPlateWidth: 400,
      MaxImageWidth: 4096,
      MaxImageHeight: 2160,
      IsFieldImage: 0,
      MovingImage: 1,
      OrderOpt: 0,
      LeanCorrection: 1,
      ImproveSpeed: 0,
      CarLogo: 1,
      LotDetect: 1,
      Shadow: 1,
      ShieldRailing: 1,
      CarModel: 1,
      LocateTh: 5,
      OCRTh: 2,
      Individual: 1,
      TwoRowYellow: 1,
      ArmPolice: 1,
      ArmPolice2: 1,
      TwoRowArmy: 1,
      Tractor: 1,
      Embassy: 1,
      ChangNei: 1,
      MinHang: 1,
      Consulate: 1,
      NewEnergy: 1,
      OnlyTwoRowYellow: 0,
      OnlyLocation: 0,
   }
}
// InitPlateIDDetector init plateid detector
func InitPlateIDDetector(config *CPlateIDCfg, soPath []byte) {
   C.c_api_plate_id_init((*C.cPlateIDCfg)(unsafe.Pointer(config)), (*C.char)(unsafe.Pointer(&soPath[0])))