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