Chnage
This commit is contained in:
parent
0b56f79b4d
commit
605112cd9f
22 changed files with 485 additions and 328 deletions
|
|
@ -176,6 +176,14 @@ If BoxID = 105005 Then
|
|||
Var OreoWelcomeDrinkEnable = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 33170 Then
|
||||
Var PepsiProEnable = 0
|
||||
Var PepsiPromoteVideo = 0
|
||||
Var PepsiProCodeEnable = 0
|
||||
Var MysteryProEnable = 0
|
||||
Var OreoWelcomeDrinkEnable = 0
|
||||
EndIf
|
||||
|
||||
|
||||
DEBUGVAR Anniversary3VideoEnable
|
||||
DEBUGVAR OreoWelcomeDrinkEnable
|
||||
|
|
|
|||
|
|
@ -186,19 +186,86 @@
|
|||
Var RoadShow = "false"
|
||||
EndIf
|
||||
|
||||
|
||||
; move to TRY actoin.
|
||||
Var RoadShow = "false"
|
||||
|
||||
; echo > /mnt/sdcard/free_mode_enable
|
||||
READ_FILE "/mnt/sdcard/free_mode_enable" free_mode_str
|
||||
STRCONTAIN "bonusbonus" free_mode_str free_mode_enable
|
||||
DEBUGVAR BoxID
|
||||
DEBUGVAR free_mode_enable
|
||||
If free_mode_enable = "true" Then
|
||||
If BoxID = 200434 Then
|
||||
Var RoadShow = "true"
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
If SystemDateDayInt = 5 Then
|
||||
If BoxID = 201316 Then
|
||||
Var RoadShow = "true"
|
||||
EndIf
|
||||
If BoxID = 200435 Then
|
||||
Var RoadShow = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
If SystemDateDayInt = 6 Then
|
||||
If BoxID = 201316 Then
|
||||
Var RoadShow = "true"
|
||||
EndIf
|
||||
If BoxID = 200435 Then
|
||||
Var RoadShow = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
If BoxID = 200435 Then
|
||||
Var RoadShow = "true"
|
||||
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
If SystemDateDayInt = 4 Then
|
||||
If BoxID = 33170 Then
|
||||
Var RoadShow = "true"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
; next gen move to TRY action
|
||||
Var matchBoxID = 0
|
||||
If BoxID = 201174 Then
|
||||
Var matchBoxID = 1
|
||||
EndIf
|
||||
If BoxID = 201188 Then
|
||||
Var matchBoxID = 1
|
||||
EndIf
|
||||
If BoxID = 201360 Then
|
||||
Var matchBoxID = 1
|
||||
EndIf
|
||||
If BoxID = 201374 Then
|
||||
Var matchBoxID = 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR matchBoxID
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
If SystemDateDayInt = 4 Then
|
||||
If matchBoxID = 1 Then
|
||||
Var RoadShow = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
If SystemDateDayInt = 5 Then
|
||||
If matchBoxID = 1 Then
|
||||
Var RoadShow = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
If SystemDateDayInt = 6 Then
|
||||
If matchBoxID = 1 Then
|
||||
Var RoadShow = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
If XMLProfile = "" Then
|
||||
CacheVarStr "get" XMLProfile
|
||||
|
|
@ -1138,8 +1205,6 @@
|
|||
Else
|
||||
Var EmergencyStop = "true"
|
||||
|
||||
;Open "ROOT/taobin_project/xml/page_show_error.xml"
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
|
|
|||
|
|
@ -594,11 +594,15 @@
|
|||
EndIf
|
||||
EndIf
|
||||
If Timeout = 9 Then
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sounds/music1.mp3"
|
||||
If OpenFromCollectPoint3 = 0 Then
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sounds/music1.mp3"
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If Timeout = 4 Then
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sounds/music1.mp3"
|
||||
If OpenFromCollectPoint3 = 0 Then
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sounds/music1.mp3"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
|
|
|||
|
|
@ -18837,26 +18837,26 @@
|
|||
Var aliasDesc[3] = "-"
|
||||
Var aliasName[4] = "LAICICANO"
|
||||
Var aliasDesc[4] = "Espresso, Sirap Laici, Gula, Air"
|
||||
Var NameLang[0][0] = ""
|
||||
Var NameLang[0][1] = ""
|
||||
Var NameLang[0][0] = "Hot LYCHEE AMERICANO"
|
||||
Var NameLang[0][1] = "อเมริกาโนลิ้นจี่ร้อน"
|
||||
Var NameLang[0][2] = ""
|
||||
Var NameLang[0][3] = ""
|
||||
Var NameLang[0][4] = ""
|
||||
Var DescLang[0][0] = ""
|
||||
Var DescLang[0][1] = ""
|
||||
Var NameLang[0][4] = "AMERICANO LAICI PANAS"
|
||||
Var DescLang[0][0] = "Espresso, Lychee,Sugar, Water"
|
||||
Var DescLang[0][1] = "กาแฟ น้ำ และ ลิ้นจี่"
|
||||
Var DescLang[0][2] = ""
|
||||
Var DescLang[0][3] = ""
|
||||
Var DescLang[0][4] = ""
|
||||
Var NameLang[1][0] = ""
|
||||
Var NameLang[1][1] = ""
|
||||
Var DescLang[0][4] = "Espresso, Sirap Laici, Gula, Air"
|
||||
Var NameLang[1][0] = "Iced LYCHEEAMERICANO"
|
||||
Var NameLang[1][1] = "อเมริกาโนลิ้นจี่เย็น"
|
||||
Var NameLang[1][2] = ""
|
||||
Var NameLang[1][3] = ""
|
||||
Var NameLang[1][4] = ""
|
||||
Var DescLang[1][0] = ""
|
||||
Var DescLang[1][1] = ""
|
||||
Var NameLang[1][4] = "AMERICANO LAICI AIS"
|
||||
Var DescLang[1][0] = "Espresso, Lychee,Water, Sugar, Ice"
|
||||
Var DescLang[1][1] = "กาแฟ น้ำเชื่อมลิ้นจี่ น้ำและ น้ำแข็ง"
|
||||
Var DescLang[1][2] = ""
|
||||
Var DescLang[1][3] = ""
|
||||
Var DescLang[1][4] = ""
|
||||
Var DescLang[1][4] = "Espresso, Sirap Laici, Air, Gula, Ais"
|
||||
Var NameLang[2][0] = ""
|
||||
Var NameLang[2][1] = ""
|
||||
Var NameLang[2][2] = ""
|
||||
|
|
@ -19901,36 +19901,36 @@
|
|||
Var aliasDesc[3] = "-"
|
||||
Var aliasName[4] = "LATTE PISANG\nTOKYO"
|
||||
Var aliasDesc[4] = "Espresso, Sirap Pisang Tokyo, Gula, Air"
|
||||
Var NameLang[0][0] = ""
|
||||
Var NameLang[0][1] = ""
|
||||
Var NameLang[0][0] = "Hot TOKYO BANANA \nLATTE"
|
||||
Var NameLang[0][1] = "ลาเต้โตเกียวบานาน่าร้อน"
|
||||
Var NameLang[0][2] = ""
|
||||
Var NameLang[0][3] = ""
|
||||
Var NameLang[0][4] = ""
|
||||
Var DescLang[0][0] = ""
|
||||
Var DescLang[0][1] = ""
|
||||
Var NameLang[0][4] = "LATTE PISANG TOKYO PANAS"
|
||||
Var DescLang[0][0] = "Espresso, Tokyo Banana Syrup,\nSugar, Water"
|
||||
Var DescLang[0][1] = "กาแฟ น้ำ และ กล้วย"
|
||||
Var DescLang[0][2] = ""
|
||||
Var DescLang[0][3] = ""
|
||||
Var DescLang[0][4] = ""
|
||||
Var NameLang[1][0] = ""
|
||||
Var NameLang[1][1] = ""
|
||||
Var DescLang[0][4] = "Espresso, Sirap Pisang Tokyo, Gula, Air"
|
||||
Var NameLang[1][0] = "Iced TOKYO BANANA \nLATTE"
|
||||
Var NameLang[1][1] = "ลาเต้โตเกียวบานาน่าเย็น"
|
||||
Var NameLang[1][2] = ""
|
||||
Var NameLang[1][3] = ""
|
||||
Var NameLang[1][4] = ""
|
||||
Var DescLang[1][0] = ""
|
||||
Var DescLang[1][1] = ""
|
||||
Var NameLang[1][4] = "LATTE PISANG TOKYO AIS"
|
||||
Var DescLang[1][0] = "Espresso, Tokyo Banana Syrup,\nSugar, Water, Ice"
|
||||
Var DescLang[1][1] = "กาแฟ น้ำแข็ง และ กล้วย"
|
||||
Var DescLang[1][2] = ""
|
||||
Var DescLang[1][3] = ""
|
||||
Var DescLang[1][4] = ""
|
||||
Var NameLang[2][0] = ""
|
||||
Var NameLang[2][1] = ""
|
||||
Var DescLang[1][4] = "Espresso, Sirap Pisang Tokyo, Gula, Air, Ais"
|
||||
Var NameLang[2][0] = "TOKYO BANANA \nLATTE SMOOTHIE"
|
||||
Var NameLang[2][1] = "ลาเต้โตเกียวบานาน่าปั่น"
|
||||
Var NameLang[2][2] = ""
|
||||
Var NameLang[2][3] = ""
|
||||
Var NameLang[2][4] = ""
|
||||
Var DescLang[2][0] = ""
|
||||
Var DescLang[2][1] = ""
|
||||
Var NameLang[2][4] = "SMOOTHIE LATTE PISANG TOKYO"
|
||||
Var DescLang[2][0] = "Espresso, Tokyo Banana Syrup,\nSugar, Water, Ice"
|
||||
Var DescLang[2][1] = "กาแฟ น้ำแข็ง และ กล้วย"
|
||||
Var DescLang[2][2] = ""
|
||||
Var DescLang[2][3] = ""
|
||||
Var DescLang[2][4] = ""
|
||||
Var DescLang[2][4] = "Espresso, Sirap Pisang Tokyo, Gula, Air, Ais"
|
||||
; end lang
|
||||
Var PD_STAGE_1 = $12-21-01-0042.Button
|
||||
Var PD_STAGE_2 = $12-21-02-0042.Button
|
||||
|
|
|
|||
|
|
@ -3988,21 +3988,21 @@
|
|||
Var DescLang[0][2] = ""
|
||||
Var DescLang[0][3] = ""
|
||||
Var DescLang[0][4] = "Susu, Koko, Yuzu"
|
||||
Var NameLang[1][0] = "Iced Cocoa Yuzu"
|
||||
Var NameLang[1][1] = "โกโก้ยูซุเย็น"
|
||||
Var NameLang[1][0] = "Cocoa Yuzu SMOOTHIE"
|
||||
Var NameLang[1][1] = "โกโก้ยูซุปั่น"
|
||||
Var NameLang[1][2] = ""
|
||||
Var NameLang[1][3] = ""
|
||||
Var NameLang[1][4] = "KOKO YUZU AIS"
|
||||
Var NameLang[1][4] = "SMOOTHIE KOKO YUZU"
|
||||
Var DescLang[1][0] = "Milk, Cocoa, Yuzu, Ice"
|
||||
Var DescLang[1][1] = "โกโก้ นม ยูซุ และน้ำแข็ง"
|
||||
Var DescLang[1][2] = ""
|
||||
Var DescLang[1][3] = ""
|
||||
Var DescLang[1][4] = "Susu, Koko, Yuzu, Ais"
|
||||
Var NameLang[2][0] = "Cocoa Yuzu SMOOTHIE"
|
||||
Var NameLang[2][1] = "โกโก้ยูซุปั่น"
|
||||
Var NameLang[2][0] = "Iced Cocoa Yuzu"
|
||||
Var NameLang[2][1] = "โกโก้ยูซุเย็น"
|
||||
Var NameLang[2][2] = ""
|
||||
Var NameLang[2][3] = ""
|
||||
Var NameLang[2][4] = "SMOOTHIE KOKO YUZU"
|
||||
Var NameLang[2][4] = "KOKO YUZU AIS"
|
||||
Var DescLang[2][0] = "Milk, Cocoa, Yuzu, Ice"
|
||||
Var DescLang[2][1] = "โกโก้ นม ยูซุ และน้ำแข็ง"
|
||||
Var DescLang[2][2] = ""
|
||||
|
|
@ -4526,11 +4526,11 @@
|
|||
Var DescLang[1][2] = ""
|
||||
Var DescLang[1][3] = ""
|
||||
Var DescLang[1][4] = "Sirap Pisang Tokyo, Susu, Gula, Ais"
|
||||
Var NameLang[2][0] = "banana"
|
||||
Var NameLang[2][1] = "กล้วย"
|
||||
Var NameLang[2][0] = "TOKYO BANANA MILK\nSMOOTHIE"
|
||||
Var NameLang[2][1] = "นมกล้วยปั่น"
|
||||
Var NameLang[2][2] = ""
|
||||
Var NameLang[2][3] = ""
|
||||
Var NameLang[2][4] = "Pisang"
|
||||
Var NameLang[2][4] = "SMOOTHIE SUSU\n PISANGTOKYO"
|
||||
Var DescLang[2][0] = "Milk, Yuzu Syrup, and Iced"
|
||||
Var DescLang[2][1] = "นม น้ำเชื่อมยูซุ และน้ำแข็ง"
|
||||
Var DescLang[2][2] = ""
|
||||
|
|
@ -4782,26 +4782,26 @@
|
|||
Var DescLang[0][2] = "-"
|
||||
Var DescLang[0][3] = "-"
|
||||
Var DescLang[0][4] = "Sirap Pisang Tokyo, Susu, Gula"
|
||||
Var NameLang[1][0] = "Iced Lychee MILK"
|
||||
Var NameLang[1][1] = "นมลิ้นจี่เย็น"
|
||||
Var NameLang[1][2] = ""
|
||||
Var NameLang[1][3] = ""
|
||||
Var NameLang[1][4] = "SUSU LAICI AIS"
|
||||
Var DescLang[1][0] = "Milk, Lychee Syrup, and Iced"
|
||||
Var DescLang[1][1] = "นม น้ำเชื่อมลิ้นจี่ และน้ำแข็ง"
|
||||
Var DescLang[1][2] = ""
|
||||
Var DescLang[1][3] = ""
|
||||
Var DescLang[1][4] = "Susu, Sirap Laici, Ais"
|
||||
Var NameLang[2][0] = "LYCHEE MILK SMOOTHIE"
|
||||
Var NameLang[2][1] = "นมลิ้นจี่ปั่น"
|
||||
Var NameLang[2][2] = ""
|
||||
Var NameLang[2][3] = ""
|
||||
Var NameLang[2][4] = "SMOOTHIE SUSU LAICI"
|
||||
Var DescLang[2][0] = "Milk, Lychee Syrup, and Iced"
|
||||
Var DescLang[2][1] = "นม น้ำเชื่อมลิ้นจี่ และน้ำแข็ง"
|
||||
Var DescLang[2][2] = ""
|
||||
Var DescLang[2][3] = ""
|
||||
Var DescLang[2][4] = "Susu, Sirap Laici, Ais"
|
||||
Var NameLang[1][0] = "Iced CHOCO TOKYO\nBANANA MILK"
|
||||
Var NameLang[1][1] = "นมช็อกโกโตเกียว\nบานาน่า"
|
||||
Var NameLang[1][2] = "-"
|
||||
Var NameLang[1][3] = "-"
|
||||
Var NameLang[1][4] = "SUSU KOKO PISANG\nTOKYO AIS"
|
||||
Var DescLang[1][0] = "Tokyo Banana Syrup, Milk, Sugar and Iced"
|
||||
Var DescLang[1][1] = "โกโก้ น้ำเชื่อมโตเกียวบานาน่า นมและน้ำตาล"
|
||||
Var DescLang[1][2] = "-"
|
||||
Var DescLang[1][3] = "-"
|
||||
Var DescLang[1][4] = "Sirap Pisang Tokyo, Susu, Gula"
|
||||
Var NameLang[2][0] = "CHOCO TOKYO\nBANANA MILK SMOOTHIE"
|
||||
Var NameLang[2][1] = "นมช็อกโกโตเกียว\nบานาน่าปั่น"
|
||||
Var NameLang[2][2] = "-"
|
||||
Var NameLang[2][3] = "-"
|
||||
Var NameLang[2][4] = "SMOOTHIE SUSU KOKO\n PISANGTOKYO"
|
||||
Var DescLang[2][0] = "Tokyo Banana Syrup, Milk, Sugar and Iced"
|
||||
Var DescLang[2][1] = "โกโก้ น้ำเชื่อมโตเกียวบานาน่า นม น้ำตาล น้ำแข็ง"
|
||||
Var DescLang[2][2] = "-"
|
||||
Var DescLang[2][3] = "-"
|
||||
Var DescLang[2][4] = "Sirap Pisang Tokyo, Susu, Gula, Ais"
|
||||
; end lang
|
||||
Var PD_STAGE_1 = $12-03-01-0024.Button
|
||||
Var PD_STAGE_2 = $12-03-02-0024.Button
|
||||
|
|
|
|||
|
|
@ -687,6 +687,7 @@
|
|||
Open "ROOT/taobin_project/xml/page_display_Promo1Get1Free.xml"
|
||||
EndIf
|
||||
|
||||
Var OpenFromCollectPoint3 = 1
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
|
|
@ -844,7 +845,7 @@
|
|||
Open "ROOT/taobin_project/xml/page_display_Promo1Get1Free.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
Var OpenFromCollectPoint3 = 1
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,58 @@
|
|||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
Var KornCropCountDown = 5
|
||||
Var KornIsShuttered = "false"
|
||||
Var KornOpenFaceCompareCountDown = 10
|
||||
Var KornIsCropped = "false"
|
||||
|
||||
; Note:
|
||||
; - Can't change roi and camera params in xml,
|
||||
; because the java code is not dynamic.
|
||||
; (It's a work-around method. (Maybe) Improve later.)
|
||||
|
||||
; Absolute positions
|
||||
Var KornRoiX = 440
|
||||
Var KornRoiY = 909
|
||||
Var KornRoiW = 200
|
||||
Var KornRoiH = 200
|
||||
Var KornRoiStepY = 40
|
||||
|
||||
; Re-calculate these values when either,
|
||||
; - CameraX size changes
|
||||
; - CameraX's hidden part size changes
|
||||
Var KornCamDisplayX = 285
|
||||
Var KornCamDisplayY = 781
|
||||
Var KornCamDisplayW = 500
|
||||
Var KornCamDisplayH = 680
|
||||
Var KornCamYHidden = 208
|
||||
|
||||
Var KornCamX = KornCamDisplayX
|
||||
Var KornCamY = KornCamDisplayY - KornCamYHidden
|
||||
Var KornCamW = KornCamDisplayW
|
||||
Var KornCamH = KornCamDisplayH + KornCamYHidden
|
||||
|
||||
Var KornRoiYMin = KornCamDisplayY
|
||||
Var KornRoiYRange = 220
|
||||
Var KornRoiYMax = KornCamDisplayY + KornRoiYRange
|
||||
|
||||
; To shrink the roi size, use this variable,
|
||||
; (value is between 0 and 100 (unit = percent))
|
||||
Var KornRoiPercentShrink = 30
|
||||
Var KornCamRoiDeltaX = KornRoiW * KornRoiPercentShrink
|
||||
Var KornCamRoiDeltaX = KornCamRoiDeltaX / 100
|
||||
Var KornCamRoiDeltaY = KornRoiH * KornRoiPercentShrink
|
||||
Var KornCamRoiDeltaY = KornCamRoiDeltaY / 100
|
||||
Var KornCamRoiW = KornRoiW - KornCamRoiDeltaX
|
||||
Var KornCamRoiH = KornRoiH - KornCamRoiDeltaY
|
||||
|
||||
; CameraX params
|
||||
Var KornCameraXOffsetX = 150
|
||||
Var KornCameraXX = KornCamDisplayX - KornCameraXOffsetX
|
||||
Var KornCameraXY = KornCamDisplayY
|
||||
Var KornCameraXW = 800
|
||||
Var KornCameraXH = 800
|
||||
; 800 = magic number
|
||||
|
||||
Var CamFlag = 0
|
||||
Var CamCount = 0
|
||||
|
|
@ -72,6 +124,7 @@
|
|||
|
||||
Var FrameOfFaceStepMoveY = 40
|
||||
|
||||
Var FrameOfFaceXPosition = 440
|
||||
Var FrameOfFaceYPosition = 909
|
||||
Var FrameOfFaceCropImageYPosition = 230
|
||||
</EventOpen>
|
||||
|
|
@ -175,7 +228,8 @@
|
|||
|
||||
|
||||
If Adult20 = 1 Then
|
||||
LivenessCommand "SetY" 210
|
||||
LivenessCommand "SetY" KornRoiY
|
||||
LivenessCommand "SetX" KornRoiX
|
||||
|
||||
LivenessCommand "start" 0
|
||||
|
||||
|
|
@ -206,6 +260,10 @@
|
|||
DEBUGVAR CountDownDelayReadCardID
|
||||
DEBUGVAR ShutterResult
|
||||
DEBUGVAR IDCardState
|
||||
|
||||
Var KornCamRoiDeltaXTmp = KornCamRoiDeltaX / 2
|
||||
Var KornCamRoiX = KornRoiX + KornCamRoiDeltaXTmp
|
||||
Var KornCamRoiY = KornRoiY
|
||||
|
||||
|
||||
If IDBirthdate = "" Then
|
||||
|
|
@ -230,20 +288,51 @@
|
|||
DEBUGVAR LivenessResult
|
||||
|
||||
If LivenessResult = "pass" Then
|
||||
Var LivenessShowString = "Pass "
|
||||
Var load_gif_stage = "Enable"
|
||||
|
||||
;CROP_IMAGE "/mnt/sdcard/camera1_alter.jpg" 170 FrameOfFaceCropImageYPosition 380 500 "/mnt/sdcard/camera1.jpg"
|
||||
If KornCropCountDown > 0 Then
|
||||
DEBUGVAR KornCropCountDown
|
||||
Var KornCropCountDown = KornCropCountDown - 1
|
||||
|
||||
CROP_IMAGE "/mnt/sdcard/camera1_alter.jpg" LivenessFramePositionX FrameOfFaceCropImageYPosition 200 200 "/mnt/sdcard/camera1.jpg"
|
||||
Var LivenessShowString = "Pass "
|
||||
Var load_gif_stage = "Enable"
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_face_compare.xml"
|
||||
EndIff
|
||||
If KornIsShuttered = "false" Then
|
||||
CameraCmd "usbfront" "shutter" "/mnt/sdcard/camera1.jpg"
|
||||
|
||||
Var KornShutter = "Shuttered"
|
||||
DEBUGVAR KornShutter
|
||||
|
||||
Var KornIsShuttered = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If KornCropCountDown <= 0 Then
|
||||
|
||||
If KornIsCropped = "false" Then
|
||||
|
||||
CROP_IMAGE "/mnt/sdcard/camera1.jpg" "/mnt/sdcard/camera1_alter.jpg"
|
||||
|
||||
Var KornCrop = "Cropped"
|
||||
DEBUGVAR KornCrop
|
||||
|
||||
Var KornIsCropped = "true"
|
||||
EndIf
|
||||
|
||||
DEBUGVAR KornOpenFaceCompareCountDown
|
||||
Var KornOpenFaceCompareCountDown = KornOpenFaceCompareCountDown - 1
|
||||
|
||||
If KornOpenFaceCompareCountDown <= 0 Then
|
||||
Open "ROOT/taobin_project/xml/page_face_compare.xml"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If LivenessResult = "fail" Then
|
||||
Var LivenessRestartCount = LivenessRestartCount + 1
|
||||
If LivenessRestartCount = 2 Then
|
||||
Var LivenessRestartCount = 0
|
||||
LivenessCommand "stop" 0
|
||||
LivenessCommand "start" 0
|
||||
Var LivenessResult = "-"
|
||||
EndIf
|
||||
|
|
@ -336,12 +425,13 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Allow up"
|
||||
If LivenessFramePositionY > 120 Then
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
|
||||
Var KornRoiYTmp = KornRoiY - KornRoiStepY
|
||||
If KornRoiYTmp > KornRoiYMin Then
|
||||
Var KornRoiY = KornRoiYTmp
|
||||
DEBUGVAR KornRoiY
|
||||
LivenessCommand "SetY" KornRoiY
|
||||
LivenessCommand "stop" 0
|
||||
LivenessCommand "start" 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
|
|
@ -359,12 +449,13 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Allow down"
|
||||
If LivenessFramePositionY < 340 Then
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
|
||||
Var KornRoiYTmp = KornRoiY + KornRoiStepY
|
||||
If KornRoiYTmp < KornRoiYMax Then
|
||||
Var KornRoiY = KornRoiYTmp
|
||||
DEBUGVAR KornRoiY
|
||||
LivenessCommand "SetY" KornRoiY
|
||||
LivenessCommand "stop" 0
|
||||
LivenessCommand "start" 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
|
|
@ -383,12 +474,13 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Allow up"
|
||||
If LivenessFramePositionY > 120 Then
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
|
||||
Var KornRoiYTmp = KornRoiY - KornRoiStepY
|
||||
If KornRoiYTmp > KornRoiYMin Then
|
||||
Var KornRoiY = KornRoiYTmp
|
||||
DEBUGVAR KornRoiY
|
||||
LivenessCommand "SetY" KornRoiY
|
||||
LivenessCommand "stop" 0
|
||||
LivenessCommand "start" 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
|
|
@ -406,14 +498,16 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Allow down"
|
||||
If LivenessFramePositionY < 340 Then
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
EndIf
|
||||
|
||||
;Var KornRoiYTmp = KornRoiY + KornRoiStepY
|
||||
;If KornRoiYTmp < KornRoiYMax Then
|
||||
; Var KornRoiY = KornRoiYTmp
|
||||
; DEBUGVAR KornRoiY
|
||||
; LivenessCommand "SetY" KornRoiY
|
||||
; LivenessCommand "stop" 0
|
||||
; LivenessCommand "start" 0
|
||||
;EndIf
|
||||
Var LivenessResult = "pass"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
|
@ -426,21 +520,31 @@
|
|||
</Image>
|
||||
|
||||
<CameraX>
|
||||
<X> 140 </X>
|
||||
<Y> 781 </Y>
|
||||
<X> KornCameraXX </X>
|
||||
;140
|
||||
<Y> KornCameraXY </Y>
|
||||
;781
|
||||
<Name>"usbfront"</Name>
|
||||
<Width> 800 </Width>
|
||||
<Height> 800 </Height>
|
||||
<Width> KornCameraXW </Width>
|
||||
;800
|
||||
; Display width is about 500, (full width is about the same)
|
||||
<Height> KornCameraXH </Height>
|
||||
;800
|
||||
; Display height is about 680, (full height = 888)
|
||||
<LivenessParameterWhenOK> "FileName=/mnt/sdcard/camera1_alter.jpg" </LivenessParameterWhenOK>
|
||||
</CameraX>
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> LivenessFramePositionX </X>
|
||||
<Y> FrameOfFaceYPosition </Y>
|
||||
<Width> 200 </Width>
|
||||
<Height> 200 </Height>
|
||||
<X> KornCamRoiX </X>
|
||||
;FrameOfFaceXPosition
|
||||
<Y> KornCamRoiY </Y>
|
||||
;FrameOfFaceYPosition
|
||||
<Width> KornCamRoiW </Width>
|
||||
;200
|
||||
<Height> KornCamRoiH </Height>
|
||||
;200
|
||||
<State> CameraStage </State>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/bg3.png" </Filename>
|
||||
</Image>
|
||||
|
|
|
|||
|
|
@ -109,6 +109,22 @@
|
|||
Open "ROOT/taobin_project/xml/page_get_yourchange.xml"
|
||||
EndIf
|
||||
Else
|
||||
|
||||
|
||||
Var OpenFromCollectPoint3 = 0
|
||||
READ_FILE "/mnt/sdcard/game_enable" game_mode_str
|
||||
STRCONTAIN "1" game_mode_str game_mode_enable
|
||||
DEBUGVAR game_mode_enable
|
||||
DEBUGVAR OpenFromCollectPoint3
|
||||
If game_mode_enable = "true" Then
|
||||
If OpenFromCollectPoint3 = 1 Then
|
||||
RunApp "com.NDF.taobin"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
If ChangeFlag2 = 0 Then
|
||||
If Seeker.PayWithQR = 0 Then
|
||||
DEBUGVAR TxRef1
|
||||
|
|
@ -139,6 +155,8 @@
|
|||
DEBUGVAR IgnoreLidStraw
|
||||
DEBUGVAR Service_LidStraw
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
If IgnoreLidStraw = "true" Then
|
||||
|
|
@ -154,6 +172,8 @@
|
|||
|
||||
DEBUGVAR StrawAutoRelease1
|
||||
Var UserPressButton = "false"
|
||||
|
||||
|
||||
|
||||
|
||||
</EventOpen>
|
||||
|
|
|
|||
|
|
@ -2073,10 +2073,10 @@ EndIf
|
|||
<QRCode>
|
||||
<X> 445 </X>
|
||||
<Y> 958 </Y>
|
||||
<Width> 200 </Width>
|
||||
<Height> 200 </Height>
|
||||
<Width> 170 </Width>
|
||||
<Height> 170 </Height>
|
||||
<Color> "0xFFFFFF" </Color>
|
||||
<QRColor> "0xE61A5F" </QRColor>
|
||||
;<QRColor> "0xE61A5F" </QRColor>
|
||||
<State> alphaState </State>
|
||||
<Service> testservice </Service>
|
||||
</QRCode>
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@
|
|||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
DEBUGVAR NETCORE_LOST_CNT
|
||||
DEBUGVAR MachineStage
|
||||
|
||||
Var EmergencyStop = "-"
|
||||
|
||||
|
|
@ -160,16 +158,9 @@
|
|||
</EventLanguageOnChange>
|
||||
|
||||
<Function2>
|
||||
|
||||
;If EmergencyStop = "true" Then
|
||||
; Var stop_now = "true"
|
||||
; If show_eng = "true" Then
|
||||
; Var DirImage = "ROOT/taobin_project/image/vending_error_en/"
|
||||
; Else
|
||||
; Var DirImage = "ROOT/taobin_project/image/vending_error"
|
||||
; EndIf
|
||||
;EndIf
|
||||
|
||||
DEBUGVAR MachineStage
|
||||
DEBUGVAR stop_now
|
||||
Var DirImage = "ROOT/taobin_project/image/vending_error_en"
|
||||
If MachineStage = "mcu-upgrade" Then
|
||||
If LanguageShow = "THAI" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/vending_error"
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@
|
|||
<EventTimeout>
|
||||
DEBUGVAR NETCORE_LOST_CNT
|
||||
DEBUGVAR MachineStage
|
||||
DEBUGVAR NETCORE_EVENT_CNT_TMP
|
||||
|
||||
Var EmergencyStop = "-"
|
||||
|
||||
|
|
|
|||
|
|
@ -297,6 +297,9 @@
|
|||
BackslashNToEnter showname
|
||||
BackslashNToEnter showdesc
|
||||
|
||||
CRLFToSpace showname
|
||||
CRLFToSpace showdesc
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
|
@ -1333,7 +1336,7 @@
|
|||
<Y> 752 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Align> Center </Align>
|
||||
<Size> 72 </Size>
|
||||
<Size> 68 </Size>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> showname </Value>
|
||||
|
|
@ -3635,6 +3638,11 @@
|
|||
|
||||
Machine PreparCup
|
||||
EndIf
|
||||
|
||||
BackslashNToEnter showname
|
||||
BackslashNToEnter showdesc
|
||||
CRLFToSpace showname
|
||||
CRLFToSpace showdesc
|
||||
|
||||
|
||||
DEBUGVAR PriceDrinkNoTop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue