From 06d9122600054934d4793f8a55fe10289f410743 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期五, 15 十一月 2019 10:07:46 +0800
Subject: [PATCH] add comment

---
 go2c.go |   77 ++++++++++++++++++++++++++++----------
 1 files changed, 56 insertions(+), 21 deletions(-)

diff --git a/go2c.go b/go2c.go
index 0e663a3..97909d6 100644
--- a/go2c.go
+++ b/go2c.go
@@ -66,28 +66,63 @@
 	ID      uint64
 }
 
+type CPlateIDCfg struct {
+	FastMemorySize int32 // DSP绛夌殑鐗囧唴鍐呭瓨澶у皬 鍗曚綅K
+	MemorySize     int32 // 鏅�氬唴瀛樺ぇ灏� 鍗曚綅 M
+	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
+	License [16]uint8 // 杞︾墝瀛楃涓� STRING
+	Color   [8]uint8  // 杞︾墝棰滆壊 STRING
 
-	NColor      int32
-	NType       int32
-	NConfidence int32
-	NBright     int32
-	NDirection  int32
+	NColor      int32 // 杞︾墝棰滆壊
+	NType       int32 // 杞︾墝绫诲瀷
+	NConfidence int32 // 鏁寸墝鍙俊搴�
+	NBright     int32 // 浜害璇勪环
+	NDirection  int32 // 杞︾墝杩愬姩鏂瑰悜锛�0 unknown, 1 left, 2 right, 3 up, 4 down
 
-	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
+	RcLocation          CRECT     // 杞︾墝鍧愭爣
+	PbyBits             [4]uint8  // 璇嗗埆缁撴灉瀵瑰簲鐨勫浘鐗囩殑缂撳啿鍖� NO USE
+	NTime               int32     // 璇嗗埆鑰楁椂
+	NCarBright          uint8     // 杞︾殑浜害
+	NCarColor           uint8     // 杞︾殑棰滆壊
+	NCarLogo            uint8     // 杞︽爣绫诲瀷
+	NCarType            uint8     // 杞﹁締绫诲瀷
+	PbyPlateBin         [4]uint8  // 杞︾墝浜屽�煎寲缁撴灉锛堟寜bit瀛樺偍锛塏O USE
+	NBinPlateWidth      [2]uint8  // 浜屽�煎寲缁撴灉涓溅鐗屽搴� NO USE
+	NBinPlateHeight     [2]uint8  // 浜屽�煎寲缁撴灉涓溅鐗岄珮搴� NO USE
+	Reserved            [70]uint8 // 淇濈暀
+	RcLogoLocation      CRECT     // 杞︽爣鍧愭爣
+	NCarModel           [2]uint8  // 杞﹁締绫诲瀷
+	NCarModelConfidence [2]uint8  // 杞﹀瀷鍙俊搴�
 }

--
Gitblit v1.8.0