Will delete page_identity_verification.xml
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 4 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9 KiB |
|
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 8 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 4 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 7.3 KiB |
|
|
@ -680,3 +680,4 @@ TextID Note English Thai China Japan Malaysia
|
||||||
800618 Gas Remaining แก๊สเหลือ
|
800618 Gas Remaining แก๊สเหลือ
|
||||||
800619 Gas CO2 แก๊ส CO2
|
800619 Gas CO2 แก๊ส CO2
|
||||||
800620 Menu soda เมนูโซดา
|
800620 Menu soda เมนูโซดา
|
||||||
|
800621 Almost full เกือบเต็ม
|
||||||
|
|
|
||||||
|
Can't render this file because it has a wrong number of fields in line 21.
|
|
|
@ -5,66 +5,44 @@
|
||||||
<Background> "0xeae6e1" </Background>
|
<Background> "0xeae6e1" </Background>
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventOpen>
|
<EventOpen>
|
||||||
Var KornCropCountDown = 5
|
Var Debug_Count = 0
|
||||||
Var KornIsShuttered = "false"
|
Var Debug_Count_Start = "false"
|
||||||
Var KornOpenFaceCompareCountDown = 10
|
|
||||||
Var KornIsCropped = "false"
|
Var Timeout_Delay_Count = 5
|
||||||
|
|
||||||
; 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,
|
; Re-calculate these values when either,
|
||||||
; - CameraX size changes
|
; - CameraX size changes
|
||||||
; - CameraX's hidden part size changes
|
; - CameraX's hidden part size changes
|
||||||
Var KornCamDisplayX = 285
|
;Var CamDisplayX = 285
|
||||||
Var KornCamDisplayY = 781
|
Var CamDisplayX = 320
|
||||||
Var KornCamDisplayW = 500
|
Var CamDisplayY = 781
|
||||||
Var KornCamDisplayH = 680
|
Var CamDisplayW = 500
|
||||||
Var KornCamYHidden = 208
|
Var CamDisplayH = 680
|
||||||
|
Var CamYHidden = 208
|
||||||
|
|
||||||
Var KornCamX = KornCamDisplayX
|
Var CamX = CamDisplayX
|
||||||
Var KornCamY = KornCamDisplayY - KornCamYHidden
|
Var CamY = CamDisplayY - CamYHidden
|
||||||
Var KornCamW = KornCamDisplayW
|
Var CamW = CamDisplayW
|
||||||
Var KornCamH = KornCamDisplayH + KornCamYHidden
|
Var CamH = CamDisplayH + CamYHidden
|
||||||
|
|
||||||
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
|
; CameraX params
|
||||||
Var KornCameraXOffsetX = 150
|
Var CameraXOffsetX = 150
|
||||||
Var KornCameraXX = KornCamDisplayX - KornCameraXOffsetX
|
Var CameraXX = CamDisplayX - CameraXOffsetX
|
||||||
Var KornCameraXY = KornCamDisplayY
|
Var CameraXY = CamDisplayY
|
||||||
Var KornCameraXW = 800
|
Var CameraXW = 800
|
||||||
Var KornCameraXH = 800
|
Var CameraXH = 800
|
||||||
; 800 = magic number
|
; 800 = magic number
|
||||||
|
|
||||||
|
; Shift to right to leave space for customer's guide
|
||||||
|
Var CameraXX = CameraXX + 100
|
||||||
|
|
||||||
Var CamFlag = 0
|
Var CamFlag = 0
|
||||||
Var CamCount = 0
|
Var CamCount = 0
|
||||||
Var Timeout = 0
|
Var Timeout = 0
|
||||||
Var ShutterResult = "-"
|
Var ShutterResult = "-"
|
||||||
|
|
||||||
Var AdultFlag = 1
|
Var AdultFlag = 1
|
||||||
|
|
||||||
If AdultFlag = 1 Then
|
If AdultFlag = 1 Then
|
||||||
|
|
||||||
Var AdultFlag = 0
|
Var AdultFlag = 0
|
||||||
|
|
@ -228,11 +206,14 @@
|
||||||
|
|
||||||
|
|
||||||
If Adult20 = 1 Then
|
If Adult20 = 1 Then
|
||||||
LivenessCommand "SetY" KornRoiY
|
;LivenessCommand "SetY" RoiY
|
||||||
LivenessCommand "SetX" KornRoiX
|
;LivenessCommand "SetX" RoiX
|
||||||
|
|
||||||
LivenessCommand "start" 0
|
LivenessCommand "start" 0
|
||||||
|
|
||||||
|
Var Debug_Count_Start = "true"
|
||||||
|
StartSavingLiveness
|
||||||
|
|
||||||
Var load_gif_stage = "Invisible"
|
Var load_gif_stage = "Invisible"
|
||||||
Var IDcardStageText = "Invisible"
|
Var IDcardStageText = "Invisible"
|
||||||
Var IDcardStage = "Invisible"
|
Var IDcardStage = "Invisible"
|
||||||
|
|
@ -253,6 +234,10 @@
|
||||||
|
|
||||||
<Timeout> 1000 </Timeout>
|
<Timeout> 1000 </Timeout>
|
||||||
<EventTimeout>
|
<EventTimeout>
|
||||||
|
If Debug_Count_Start = "true" Then
|
||||||
|
Var Debug_Count = Debug_Count + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
DEBUGVAR IDCardStatus
|
DEBUGVAR IDCardStatus
|
||||||
DEBUGVAR IDCardReady
|
DEBUGVAR IDCardReady
|
||||||
DEBUGVAR IDCardData
|
DEBUGVAR IDCardData
|
||||||
|
|
@ -261,10 +246,10 @@
|
||||||
DEBUGVAR ShutterResult
|
DEBUGVAR ShutterResult
|
||||||
DEBUGVAR IDCardState
|
DEBUGVAR IDCardState
|
||||||
|
|
||||||
Var KornCamRoiDeltaXTmp = KornCamRoiDeltaX / 2
|
; Debug rare case : id card is read but nothing happens
|
||||||
Var KornCamRoiX = KornRoiX + KornCamRoiDeltaXTmp
|
DEBUGVAR IDcardStage
|
||||||
Var KornCamRoiY = KornRoiY
|
DEBUGVAR CameraStage
|
||||||
|
DEBUGVAR load_gif_stage
|
||||||
|
|
||||||
If IDBirthdate = "" Then
|
If IDBirthdate = "" Then
|
||||||
Var CountDownDelayReadCardID = CountDownDelayReadCardID - 1
|
Var CountDownDelayReadCardID = CountDownDelayReadCardID - 1
|
||||||
|
|
@ -274,11 +259,24 @@
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
DEBUGVAR Timeout
|
DEBUGVAR Timeout
|
||||||
Var Timeout = Timeout + 1
|
Var Timeout = Timeout + 1
|
||||||
|
|
||||||
|
If Timeout = 120 Then
|
||||||
|
StopSavingLiveness
|
||||||
|
LivenessCommand "stop" 0
|
||||||
|
EndIf
|
||||||
|
|
||||||
If Timeout > 120 Then
|
If Timeout > 120 Then
|
||||||
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
Var LivenessShowString = "หมดเวลา กลับเมนูใน " + Timeout_Delay_Count
|
||||||
|
Var LivenessShowString = LivenessShowString + " วิ"
|
||||||
|
|
||||||
|
Var Timeout_Delay_Count = Timeout_Delay_Count - 1
|
||||||
|
|
||||||
|
If Timeout > 125 Then
|
||||||
|
LivenessCommand "stop" 0
|
||||||
|
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
;If ShutterResult = "ok" Then
|
;If ShutterResult = "ok" Then
|
||||||
|
|
@ -288,44 +286,8 @@
|
||||||
DEBUGVAR LivenessResult
|
DEBUGVAR LivenessResult
|
||||||
|
|
||||||
If LivenessResult = "pass" Then
|
If LivenessResult = "pass" Then
|
||||||
|
LivenessCommand "stop" 0
|
||||||
If KornCropCountDown > 0 Then
|
Open "ROOT/taobin_project/xml/page_face_compare.xml"
|
||||||
DEBUGVAR KornCropCountDown
|
|
||||||
Var KornCropCountDown = KornCropCountDown - 1
|
|
||||||
|
|
||||||
Var LivenessShowString = "Pass "
|
|
||||||
Var load_gif_stage = "Enable"
|
|
||||||
|
|
||||||
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
|
EndIf
|
||||||
|
|
||||||
If LivenessResult = "fail" Then
|
If LivenessResult = "fail" Then
|
||||||
|
|
@ -348,12 +310,8 @@
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
DEBUGVAR LivenessFramePositionX
|
Refresh
|
||||||
DEBUGVAR LivenessFramePositionY
|
TimerReset
|
||||||
|
|
||||||
|
|
||||||
Refresh
|
|
||||||
TimerReset
|
|
||||||
</EventTimeout>
|
</EventTimeout>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -377,7 +335,8 @@
|
||||||
</Image>
|
</Image>
|
||||||
|
|
||||||
<Image>
|
<Image>
|
||||||
<X> 123 </X>
|
;<X> 123 </X>
|
||||||
|
<X> 223 </X>
|
||||||
<Y> 598 </Y>
|
<Y> 598 </Y>
|
||||||
<State> CameraStage </State>
|
<State> CameraStage </State>
|
||||||
<Filename> "ROOT/taobin_project/image/liveness/bg2.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/liveness/bg2.png" </Filename>
|
||||||
|
|
@ -385,9 +344,11 @@
|
||||||
|
|
||||||
|
|
||||||
<Text>
|
<Text>
|
||||||
<X> 0 </X>
|
;<X> 0 </X>
|
||||||
|
<X> 220 </X>
|
||||||
<Y> 602 </Y>
|
<Y> 602 </Y>
|
||||||
<Width> 1080</Width>
|
;<Width> 1080</Width>
|
||||||
|
<Width> 980</Width>
|
||||||
<Align> Center </Align>
|
<Align> Center </Align>
|
||||||
<Size> 60 </Size>
|
<Size> 60 </Size>
|
||||||
<Font> KanitMediumTTF </Font>
|
<Font> KanitMediumTTF </Font>
|
||||||
|
|
@ -396,6 +357,95 @@
|
||||||
<Value> LivenessShowString </Value>
|
<Value> LivenessShowString </Value>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
|
; guide for customers
|
||||||
|
;<Text>
|
||||||
|
;<X> 20 </X>
|
||||||
|
;<Y> 800 </Y>
|
||||||
|
;<Width> 1080</Width>
|
||||||
|
;<Align> Start </Align>
|
||||||
|
;<Size> 45 </Size>
|
||||||
|
;<Font> KanitRegularTTF </Font>
|
||||||
|
;<Color> 0xFFFFFF </Color>
|
||||||
|
;<Value> "ทำยังไงให้ง่าย
|
||||||
|
;- มองกล้อง
|
||||||
|
;- ถอดแว่น
|
||||||
|
;- ถอดแมส
|
||||||
|
;- ไม่หลับตา
|
||||||
|
;- หน้าในกรอบ
|
||||||
|
;" </Value>
|
||||||
|
;</Text>
|
||||||
|
|
||||||
|
<Text>
|
||||||
|
<X> 100 </X>
|
||||||
|
<Y> 750 </Y>
|
||||||
|
<Width> 1080</Width>
|
||||||
|
<Align> Start </Align>
|
||||||
|
<Size> 30 </Size>
|
||||||
|
<Font> KanitRegularTTF </Font>
|
||||||
|
<Color> 0xFFFFFF </Color>
|
||||||
|
<Value> "ตัวอย่าง" </Value>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 25 </X>
|
||||||
|
<Y> 800 </Y>
|
||||||
|
<Height>150</Height>
|
||||||
|
<Filename> "ROOT/taobin_project/image/liveness/liveness_good_1.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 25 </X>
|
||||||
|
<Y> 1000 </Y>
|
||||||
|
<Height>150</Height>
|
||||||
|
<Filename> "ROOT/taobin_project/image/liveness/liveness_good_2.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 25 </X>
|
||||||
|
<Y> 1200 </Y>
|
||||||
|
<Height>150</Height>
|
||||||
|
<Filename> "ROOT/taobin_project/image/liveness/liveness_good_3.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 175 </X>
|
||||||
|
<Y> 800 </Y>
|
||||||
|
<Height>150</Height>
|
||||||
|
<Filename> "ROOT/taobin_project/image/liveness/liveness_bad_1.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 175 </X>
|
||||||
|
<Y> 1000 </Y>
|
||||||
|
<Height>150</Height>
|
||||||
|
<Filename> "ROOT/taobin_project/image/liveness/liveness_bad_2.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
<X> 175 </X>
|
||||||
|
<Y> 1200 </Y>
|
||||||
|
<Height>150</Height>
|
||||||
|
<Filename> "ROOT/taobin_project/image/liveness/liveness_bad_3.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
;<Text>
|
||||||
|
;<X> 25 </X>
|
||||||
|
;<Y> 1400 </Y>
|
||||||
|
;<Width> 1080</Width>
|
||||||
|
;<Align> Start </Align>
|
||||||
|
;<Size> 30 </Size>
|
||||||
|
;<Font> KanitRegularTTF </Font>
|
||||||
|
;<Color> 0xFFFFFF </Color>
|
||||||
|
;<Value> "เลื่อนกล้องให้ยืนสบาย" </Value>
|
||||||
|
;</Text>
|
||||||
|
|
||||||
|
;<GIF>
|
||||||
|
;<X> 66 </X>
|
||||||
|
;<Y> 1450 </Y>
|
||||||
|
;<Height>300</Height>
|
||||||
|
;<State> "Enable" </State>
|
||||||
|
;<Filename> "ROOT/taobin_project/image/liveness/move_cam_2.gif"</Filename>
|
||||||
|
;</GIF>
|
||||||
|
|
||||||
|
|
||||||
; back
|
; back
|
||||||
|
|
@ -408,157 +458,76 @@
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
SAVELOG "Liveness Result - Cancel"
|
SAVELOG "Liveness Result - Cancel"
|
||||||
|
|
||||||
|
Var Debug_Message = "Liveness Result - cancel " + FailTrickCount
|
||||||
|
Var Debug_Message = Debug_Message + " ("
|
||||||
|
Var Debug_Message = Debug_Message + Debug_Count
|
||||||
|
Var Debug_Message = Debug_Message + " seconds)"
|
||||||
|
SAVELOG Debug_Message
|
||||||
|
|
||||||
|
StopSavingLivenessDelete
|
||||||
|
|
||||||
|
LivenessCommand "stop" 0
|
||||||
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
; arrow up
|
|
||||||
<Button>
|
|
||||||
<X> 20 </X>
|
|
||||||
<Y> 888 </Y>
|
|
||||||
<Width>180</Width>
|
|
||||||
<Height>180</Height>
|
|
||||||
<Filename> "ROOT/taobin_project/image/liveness/arrow_up.png" </Filename>
|
|
||||||
<FilenamePress> "ROOT/taobin_project/image/liveness/arrow_up.png" </FilenamePress>
|
|
||||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
||||||
<Volume> SoundVolume </Volume>
|
|
||||||
<EventClick>
|
|
||||||
SAVELOG "Allow up"
|
|
||||||
|
|
||||||
Var KornRoiYTmp = KornRoiY - KornRoiStepY
|
|
||||||
If KornRoiYTmp > KornRoiYMin Then
|
|
||||||
Var KornRoiY = KornRoiYTmp
|
|
||||||
DEBUGVAR KornRoiY
|
|
||||||
LivenessCommand "SetY" KornRoiY
|
|
||||||
LivenessCommand "stop" 0
|
|
||||||
LivenessCommand "start" 0
|
|
||||||
EndIf
|
|
||||||
</EventClick>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
; arrow down
|
|
||||||
<Button>
|
|
||||||
<X> 20 </X>
|
|
||||||
<Y> 1249 </Y>
|
|
||||||
<Width>180</Width>
|
|
||||||
<Height>180</Height>
|
|
||||||
<Filename> "ROOT/taobin_project/image/liveness/arrow_down.png" </Filename>
|
|
||||||
<FilenamePress> "ROOT/taobin_project/image/liveness/arrow_down.png" </FilenamePress>
|
|
||||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
||||||
<Volume> SoundVolume </Volume>
|
|
||||||
<EventClick>
|
|
||||||
SAVELOG "Allow down"
|
|
||||||
|
|
||||||
Var KornRoiYTmp = KornRoiY + KornRoiStepY
|
|
||||||
If KornRoiYTmp < KornRoiYMax Then
|
|
||||||
Var KornRoiY = KornRoiYTmp
|
|
||||||
DEBUGVAR KornRoiY
|
|
||||||
LivenessCommand "SetY" KornRoiY
|
|
||||||
LivenessCommand "stop" 0
|
|
||||||
LivenessCommand "start" 0
|
|
||||||
EndIf
|
|
||||||
</EventClick>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
|
|
||||||
; arrow up
|
|
||||||
<Button>
|
|
||||||
<X> 892 </X>
|
|
||||||
<Y> 888 </Y>
|
|
||||||
<Width>180</Width>
|
|
||||||
<Height>180</Height>
|
|
||||||
<Filename> "ROOT/taobin_project/image/liveness/arrow_up.png" </Filename>
|
|
||||||
<FilenamePress> "ROOT/taobin_project/image/liveness/arrow_up.png" </FilenamePress>
|
|
||||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
||||||
<Volume> SoundVolume </Volume>
|
|
||||||
<EventClick>
|
|
||||||
SAVELOG "Allow up"
|
|
||||||
|
|
||||||
Var KornRoiYTmp = KornRoiY - KornRoiStepY
|
|
||||||
If KornRoiYTmp > KornRoiYMin Then
|
|
||||||
Var KornRoiY = KornRoiYTmp
|
|
||||||
DEBUGVAR KornRoiY
|
|
||||||
LivenessCommand "SetY" KornRoiY
|
|
||||||
LivenessCommand "stop" 0
|
|
||||||
LivenessCommand "start" 0
|
|
||||||
EndIf
|
|
||||||
</EventClick>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
; arrow down
|
|
||||||
<Button>
|
|
||||||
<X> 892 </X>
|
|
||||||
<Y> 1249 </Y>
|
|
||||||
<Width>180</Width>
|
|
||||||
<Height>180</Height>
|
|
||||||
<Filename> "ROOT/taobin_project/image/liveness/arrow_down.png" </Filename>
|
|
||||||
<FilenamePress> "ROOT/taobin_project/image/liveness/arrow_down.png" </FilenamePress>
|
|
||||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
||||||
<Volume> SoundVolume </Volume>
|
|
||||||
<EventClick>
|
|
||||||
SAVELOG "Allow down"
|
|
||||||
|
|
||||||
;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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Image>
|
<Image>
|
||||||
<X> 196 </X>
|
;<X> 196 </X>
|
||||||
|
<X> 320 </X>
|
||||||
<Y> 737 </Y>
|
<Y> 737 </Y>
|
||||||
<Filename> "ROOT/taobin_project/image/liveness/bg_21.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/liveness/bg_21.png" </Filename>
|
||||||
</Image>
|
</Image>
|
||||||
|
|
||||||
<CameraX>
|
<CameraX>
|
||||||
<X> KornCameraXX </X>
|
<X> CameraXX </X>
|
||||||
;140
|
;140
|
||||||
<Y> KornCameraXY </Y>
|
<Y> CameraXY </Y>
|
||||||
;781
|
;781
|
||||||
<Name>"usbfront"</Name>
|
<Name>"usbfront"</Name>
|
||||||
<Width> KornCameraXW </Width>
|
<Width> CameraXW </Width>
|
||||||
;800
|
;800
|
||||||
; Display width is about 500, (full width is about the same)
|
; Display width is about 500, (full width is about the same)
|
||||||
<Height> KornCameraXH </Height>
|
<Height> CameraXH </Height>
|
||||||
;800
|
;800
|
||||||
; Display height is about 680, (full height = 888)
|
; Display height is about 680, (full height = 888)
|
||||||
<LivenessParameterWhenOK> "FileName=/mnt/sdcard/camera1_alter.jpg" </LivenessParameterWhenOK>
|
<LivenessParameterWhenOK> "FileName=/mnt/sdcard/camera1.jpg" </LivenessParameterWhenOK>
|
||||||
</CameraX>
|
</CameraX>
|
||||||
|
|
||||||
|
<Image>
|
||||||
|
;<X> -35 </X>
|
||||||
|
<X> 5 </X>
|
||||||
|
<Y> 780 </Y>
|
||||||
|
<Height>680</Height>
|
||||||
|
<State> CameraStage </State>
|
||||||
|
<Filename> "ROOT/taobin_project/image/liveness/transparent.png" </Filename>
|
||||||
|
</Image>
|
||||||
|
|
||||||
<Image>
|
<Image>
|
||||||
<X> KornCamRoiX </X>
|
;<X> 550 </X>
|
||||||
;FrameOfFaceXPosition
|
<X> 620 </X>
|
||||||
<Y> KornCamRoiY </Y>
|
<Y> 780 </Y>
|
||||||
;FrameOfFaceYPosition
|
<Height>680</Height>
|
||||||
<Width> KornCamRoiW </Width>
|
|
||||||
;200
|
|
||||||
<Height> KornCamRoiH </Height>
|
|
||||||
;200
|
|
||||||
<State> CameraStage </State>
|
<State> CameraStage </State>
|
||||||
<Filename> "ROOT/taobin_project/image/liveness/bg3.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/liveness/transparent.png" </Filename>
|
||||||
</Image>
|
</Image>
|
||||||
|
|
||||||
|
|
||||||
<Image>
|
<Image>
|
||||||
<X> 196 </X>
|
;<X> 196 </X>
|
||||||
|
;<X> 296 </X>
|
||||||
|
<X> 320 </X>
|
||||||
<Y> 737 </Y>
|
<Y> 737 </Y>
|
||||||
<State> IDcardStage </State>
|
<State> IDcardStage </State>
|
||||||
<Filename> "ROOT/taobin_project/image/liveness/bg_21.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/liveness/bg_21.png" </Filename>
|
||||||
</Image>
|
</Image>
|
||||||
|
|
||||||
<Text>
|
<Text>
|
||||||
<X> 0 </X>
|
;<X> 0 </X>
|
||||||
|
;<X> 220 </X>
|
||||||
|
<X> 240 </X>
|
||||||
<Y> 1050 </Y>
|
<Y> 1050 </Y>
|
||||||
<State> IDcardStageText </State>
|
<State> IDcardStageText </State>
|
||||||
<Width> 1080</Width>
|
<Width> 1080</Width>
|
||||||
|
|
@ -572,7 +541,9 @@
|
||||||
|
|
||||||
|
|
||||||
<GIF>
|
<GIF>
|
||||||
<X> 440 </X>
|
;<X> 440 </X>
|
||||||
|
;<X> 540 </X>
|
||||||
|
<X> 580 </X>
|
||||||
<Y> 988 </Y>
|
<Y> 988 </Y>
|
||||||
<State> load_gif_stage </State>
|
<State> load_gif_stage </State>
|
||||||
<Filename> "ROOT/taobin_project/image/page_payment/loading.gif"</Filename>
|
<Filename> "ROOT/taobin_project/image/page_payment/loading.gif"</Filename>
|
||||||
|
|
@ -603,11 +574,13 @@
|
||||||
Play SoundWavFileName
|
Play SoundWavFileName
|
||||||
Var PrevSoundWavFileName = SoundWavFileName
|
Var PrevSoundWavFileName = SoundWavFileName
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If LivenessResult = "pass" Then
|
If LivenessResult = "pass" Then
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Var LivenessShowString = LivenessStateString
|
If Timeout < 120 Then
|
||||||
|
Var LivenessShowString = LivenessStateString
|
||||||
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
Refresh
|
Refresh
|
||||||
</EventLivenessState>
|
</EventLivenessState>
|
||||||
|
|
@ -619,10 +592,28 @@
|
||||||
Var strlog_liveness = "Liveness Result - pass " + FailTrickCount
|
Var strlog_liveness = "Liveness Result - pass " + FailTrickCount
|
||||||
|
|
||||||
SAVELOG strlog_liveness
|
SAVELOG strlog_liveness
|
||||||
|
|
||||||
|
Var Debug_Message = "Liveness Result - pass " + FailTrickCount
|
||||||
|
Var Debug_Message = Debug_Message + " ("
|
||||||
|
Var Debug_Message = Debug_Message + Debug_Count
|
||||||
|
Var Debug_Message = Debug_Message + " seconds)"
|
||||||
|
SAVELOG Debug_Message
|
||||||
|
|
||||||
|
StopSavingLivenessDelete
|
||||||
Else
|
Else
|
||||||
Var FailTrickCount = FailTrickCount + 1
|
Var FailTrickCount = FailTrickCount + 1
|
||||||
Var strlog_liveness = "Liveness Result - fail " + FailTrickCount
|
Var strlog_liveness = "Liveness Result - fail " + FailTrickCount
|
||||||
SAVELOG strlog_liveness
|
SAVELOG strlog_liveness
|
||||||
|
|
||||||
|
Var Debug_Message = "Liveness Result - failed " + FailTrickCount
|
||||||
|
Var Debug_Message = Debug_Message + " ("
|
||||||
|
Var Debug_Message = Debug_Message + Debug_Count
|
||||||
|
Var Debug_Message = Debug_Message + " seconds)"
|
||||||
|
SAVELOG Debug_Message
|
||||||
|
Var Debug_Count = 0
|
||||||
|
|
||||||
|
StopSavingLiveness
|
||||||
|
StartSavingLiveness
|
||||||
EndIf
|
EndIf
|
||||||
</EventLivenessResult>
|
</EventLivenessResult>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,8 +108,8 @@
|
||||||
Var RandomPromotionMyworld = 0
|
Var RandomPromotionMyworld = 0
|
||||||
Var RandomSalePackage = 0
|
Var RandomSalePackage = 0
|
||||||
|
|
||||||
Var XMLPageVersion = "7.83"
|
Var XMLPageVersion = "7.84"
|
||||||
Var XMLPageVersionInt = 783
|
Var XMLPageVersionInt = 784
|
||||||
;Oreo
|
;Oreo
|
||||||
Var OreoGuarantee = 0
|
Var OreoGuarantee = 0
|
||||||
</EventOpen>
|
</EventOpen>
|
||||||
|
|
|
||||||