From 93001d715c38b296bedf2b2e5f4d1efb3151f666 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期四, 14 十一月 2019 16:31:24 +0800
Subject: [PATCH] fix:set the plate sdk parameters by api

---
 go2c.go |  145 +++++++++++++++++++++++++++++++++++-------------
 1 files changed, 105 insertions(+), 40 deletions(-)

diff --git a/go2c.go b/go2c.go
index b4c6274..6431f48 100644
--- a/go2c.go
+++ b/go2c.go
@@ -4,58 +4,123 @@
 package gosdk
 
 type CPOINT struct {
-	X	int32
-	Y	int32
+	X int32
+	Y int32
 }
 type CRECT struct {
-	Left	int32
-	Top	int32
-	Right	int32
-	Bottom	int32
+	Left   int32
+	Top    int32
+	Right  int32
+	Bottom int32
 }
 type CIMAGE struct {
-	Data		*uint8
-	Width		int32
-	Height		int32
-	Channel		int32
-	Pad_cgo_0	[4]byte
+	Data      *uint8
+	Width     int32
+	Height    int32
+	Channel   int32
+	Pad_cgo_0 [4]byte
 }
 type CFaceAngle struct {
-	Yaw		int32
-	Pitch		int32
-	Roll		int32
-	Confidence	float32
+	Yaw        int32
+	Pitch      int32
+	Roll       int32
+	Confidence float32
 }
 type CThftResult struct {
-	Gender		int32
-	Age		int32
-	Race		int32
-	Beauty_level	int32
-	Smile_level	int32
+	Gender       int32
+	Age          int32
+	Race         int32
+	Beauty_level int32
+	Smile_level  int32
 }
 type CFacePos struct {
-	RcFace		CRECT
-	PtLeftEye	CPOINT
-	PtRightEye	CPOINT
-	PtMouth		CPOINT
-	PtNose		CPOINT
-	FAngle		CFaceAngle
-	NQuality	int32
-	PFacialData	[512]uint8
+	RcFace      CRECT
+	PtLeftEye   CPOINT
+	PtRightEye  CPOINT
+	PtMouth     CPOINT
+	PtNose      CPOINT
+	FAngle      CFaceAngle
+	NQuality    int32
+	PFacialData [512]uint8
 }
 type CFaceInfo struct {
-	RcFace		CRECT
-	PtLeftEye	CPOINT
-	PtRightEye	CPOINT
-	PtMouth		CPOINT
-	PtNose		CPOINT
-	FAngle		CFaceAngle
-	NQuality	int32
-	PFacialData	[8192]uint8
-	NFaceID		int64
+	RcFace      CRECT
+	PtLeftEye   CPOINT
+	PtRightEye  CPOINT
+	PtMouth     CPOINT
+	PtNose      CPOINT
+	FAngle      CFaceAngle
+	NQuality    int32
+	PFacialData [8192]uint8
+	NFaceID     int64
 }
 type CObjInfo struct {
-	RcObj	CRECT
-	Typ	int32
-	Prob	float32
+	RcObj CRECT
+	Typ   int32
+	Prob  float32
+}
+
+//track yolo objs info
+type CObjTrackInfo struct {
+	ObjInfo CObjInfo
+	ID      uint64
+}
+
+type CPlateIDCfg struct {
+	MinPlateWidth  int32 // 妫�娴嬬殑鏈�灏忚溅鐗屽搴︼紝浠ュ儚绱犱负鍗曚綅
+	MaxPlateWidth  int32 // 妫�娴嬬殑鏈�澶ц溅鐗屽搴︼紝浠ュ儚绱犱负鍗曚綅
+	MaxImageWidth  int32 // 鏈�澶у浘鍍忓搴�
+	MaxImageHeight int32 // 鏈�澶у浘鍍忛珮搴�
+	IsFieldImage   uint8 // 鏄惁鏄満鍥惧儚
+	MovingImage    uint8 // 璇嗗埆杩愬姩or闈欐鍥惧儚
+	OrderOpt       uint8 // 杈撳嚭椤哄簭閫夐」 0-缃俊搴� 1-鑷笂鑰屼笅 2-鑷笅鑰屼笂
+	LeanCorrection uint8 // 鏄惁鍚敤杞︾墝鏃嬭浆鍔熻兘锛岄粯璁ゅ紑鍚�
+	ImproveSpeed   uint8 // 0: 璇嗗埆鐜囦紭鍏� 1:璇嗗埆閫熷害浼樺厛
+	CarLogo        uint8 // 0: 涓嶆娴嬭溅鏍� 1: 妫�娴嬭溅鏍�
+	LotDetect      uint8 // 0: 涓嶆娴嬭溅浣� 1: 妫�娴嬭溅浣�
+	Shadow         uint8 // 0: 閽堝鏃犻槾褰辩殑杞︾墝 1锛氶拡瀵规湁闃村奖鐨勮溅鐗岋紝榛樿寮�鍚�
+	ShieldRailing  uint8 // 0: 灞忚斀鏍忔潌骞叉壈锛� 1:涓嶅睆钄芥爮鏉嗗共鎵�
+	CarModel       uint8 // 0: 涓嶈瘑鍒溅鍨嬶紝 1: 璇嗗埆杞﹀瀷
+	LocateTh       uint8 // 杞︾墝瀹氫綅闃堝��
+	OCRTh          uint8 // 杞︾墝璇嗗埆闃堝��
+
+	Individual       uint8 // 涓�у寲杞︾墝寮�鍚�
+	TwoRowYellow     uint8 // 鍙屽眰榛勮壊杞︾墝寮�鍚�
+	ArmPolice        uint8 // 鍗曞眰姝﹁杞︾墝寮�鍚�
+	ArmPolice2       uint8 // 鍙屽眰姝﹁杞︾墝寮�鍚�
+	TwoRowArmy       uint8 // 鍙屽眰鍐涢槦杞︾墝寮�鍚�
+	Tractor          uint8 // 鍐滅敤杞﹁溅鐗屽紑鍚�
+	Embassy          uint8 // 浣块杞︾墝寮�鍚�
+	ChangNei         uint8 // 鍘傚唴杞︾墝寮�鍚�
+	MinHang          uint8 // 姘戣埅杞︾墝寮�鍚�
+	Consulate        uint8 // 棰嗕簨棣嗚溅鐗屽紑鍚�
+	NewEnergy        uint8 // 鏂拌兘婧愯溅鐗屽紑鍚�
+	OnlyTwoRowYellow uint8 // 鍙瘑鍒弻灞傞粍鐗屽紑鍚�
+	OnlyLocation     uint8 // 鍙畾浣嶈溅鐗屽紑鍚�
+}
+
+type CPlateIDResult struct {
+	License [16]uint8
+	Color   [8]uint8
+
+	NColor      int32
+	NType       int32
+	NConfidence int32
+	NBright     int32
+	NDirection  int32
+
+	RcLocation          CRECT
+	PbyBits             [4]uint8
+	NTime               int32
+	NCarBright          uint8
+	NCarColor           uint8
+	NCarLogo            uint8
+	NCarType            uint8
+	PbyPlateBin         [4]uint8
+	NBinPlateWidth      [2]uint8
+	NBinPlateHeight     [2]uint8
+	Reserved            [70]uint8
+	RcLogoLocation      CRECT
+	NCarModel           [2]uint8
+	NCarModelConfidence [2]uint8
 }

--
Gitblit v1.8.0