DO
This commit is contained in:
parent
1dd3c8c4be
commit
06d2d76b49
8 changed files with 56 additions and 9 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 17 KiB |
BIN
image/liveness/bg3.png
Normal file
BIN
image/liveness/bg3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7 KiB |
BIN
image/liveness/bg_21.png
Normal file
BIN
image/liveness/bg_21.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
image/liveness/bg_sub.png
Normal file
BIN
image/liveness/bg_sub.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
|
|
@ -1017,7 +1017,7 @@
|
|||
EndIf
|
||||
|
||||
;DEBUGVAR CountDownCheckCamera
|
||||
DEBUGVAR Not#CameraSettingStatus
|
||||
;DEBUGVAR Not#CameraSettingStatus
|
||||
If CountDownCheckCamera = 0 Then
|
||||
Var CountDownCheckCamera = 5
|
||||
If Not#CameraSettingStatus = "" Then
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@
|
|||
If blend_button_state = "PressForever" Then
|
||||
Var PriceDrink = 10
|
||||
EndIf
|
||||
|
||||
|
||||
CameraCmd "usbfront" "--delete-file" "/mnt/sdcard/camera1.jpg"
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
|
||||
</EventActionOk>
|
||||
|
|
@ -42,6 +46,20 @@
|
|||
Var IDcardTextState = "Enable"
|
||||
Var IDcardTextStatus = "ใบหน้าไม่เหมือนกับบัตร"
|
||||
|
||||
;CameraCmd "usbfront" "--delete-file" "/mnt/sdcard/camera1.jpg"
|
||||
|
||||
Var save_file_name = "face_" + SystemDateMonth
|
||||
Var save_file_name = save_file_name + SystemDateDay
|
||||
Var save_file_name = save_file_name + SystemTimeMinute
|
||||
Var save_file_name = save_file_name + SystemTimeMinute
|
||||
Var save_file_name = "/mnt/sdcard/" + save_file_name
|
||||
Var save_file_name = save_file_name + ".jpg"
|
||||
|
||||
Var save_file_name = "/mnt/sdcard/camera1.jpg," + save_file_name
|
||||
|
||||
|
||||
CameraCmd "usbfront" "--copy-file" save_file_name
|
||||
|
||||
</EventActionError>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@
|
|||
Var IDcardStageText = "Enable"
|
||||
Var load_gif_stage = "Invisible"
|
||||
Var IDcardTextStatus = "โปรดเสียบบัตรประชาชน \nเพื่อดำเนินการต่อ"
|
||||
|
||||
Var LivenessRestartCount = 0
|
||||
</EventOpen>
|
||||
|
||||
<EventActionOk>
|
||||
|
|
@ -224,6 +226,15 @@
|
|||
Open "ROOT/taobin_project/xml/page_face_compare.xml"
|
||||
EndIff
|
||||
|
||||
If LivenessResult = "fail" Then
|
||||
Var LivenessRestartCount = LivenessRestartCount + 1
|
||||
If LivenessRestartCount = 2 Then
|
||||
Var LivenessRestartCount = 0
|
||||
LivenessCommand "start"
|
||||
Var LivenessResult = "-"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
|
@ -269,12 +280,6 @@
|
|||
</Text>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 249 </X>
|
||||
<Y> 751 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/bg1.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
; back
|
||||
<Button>
|
||||
|
|
@ -292,8 +297,14 @@
|
|||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 196 </X>
|
||||
<Y> 737 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/bg_21.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<CameraX>
|
||||
<X> 120 </X>
|
||||
<X> 140 </X>
|
||||
<Y> 781 </Y>
|
||||
<Name>"usbfront"</Name>
|
||||
<Width> 800 </Width>
|
||||
|
|
@ -301,6 +312,15 @@
|
|||
<LivenessParameterWhenOK> "FileName=/mnt/sdcard/camera1.jpg" </LivenessParameterWhenOK>
|
||||
</CameraX>
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 351 </X>
|
||||
<Y> 880 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/bg3.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 249 </X>
|
||||
<Y> 751 </Y>
|
||||
|
|
@ -350,7 +370,11 @@
|
|||
|
||||
<EventLivenessResult>
|
||||
DEBUGVAR LivenessResult
|
||||
|
||||
If LivenessResult = "pass" Then
|
||||
SAVELOG "Liveness Result - pass"
|
||||
Else
|
||||
SAVELOG "Liveness Result - fail"
|
||||
EndIf
|
||||
</EventLivenessResult>
|
||||
|
||||
<EventUnitTest1>
|
||||
|
|
@ -367,6 +391,10 @@
|
|||
Var IDCardData = "DONE"
|
||||
EventEvaluate "EventIDCard"
|
||||
</EventUnitTest2>
|
||||
<EventUnitTest3>
|
||||
Var LivenessResult = "pass"
|
||||
EventEvaluate "EventLivenessState"
|
||||
</EventUnitTest3>
|
||||
|
||||
</Popup>
|
||||
|
||||
|
|
|
|||
|
|
@ -337,6 +337,7 @@
|
|||
|
||||
If EnableLiveness = "true" Then
|
||||
If CameraCount = 1 Then
|
||||
; echo -n true > /mnt/sdcard/enable_discount_price5
|
||||
READ_FILE "/mnt/sdcard/enable_discount_price5" EnableDiscountPrice5
|
||||
DEBUGVAR EnableDiscountPrice5
|
||||
If EnableDiscountPrice5 = "true" Then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue