DO
This commit is contained in:
parent
a080479633
commit
a397fc5708
24 changed files with 653 additions and 31 deletions
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
Var LivenessResult = ""
|
||||
|
||||
Var CountDownDelayReadCardID = 5
|
||||
Var CountDownDelayReadCardID = 3
|
||||
DEBUGVAR CameraCount
|
||||
;STOPCARDID
|
||||
Var LivenessShowString = ""
|
||||
|
|
@ -69,6 +69,11 @@
|
|||
|
||||
Var LivenessRestartCount = 0
|
||||
Var FailTrickCount = 0
|
||||
|
||||
Var FrameOfFaceStepMoveY = 40
|
||||
|
||||
Var FrameOfFaceYPosition = 909
|
||||
Var FrameOfFaceCropImageYPosition = 230
|
||||
</EventOpen>
|
||||
|
||||
<EventActionOk>
|
||||
|
|
@ -170,7 +175,10 @@
|
|||
|
||||
|
||||
If Adult20 = 1 Then
|
||||
LivenessCommand "start"
|
||||
LivenessCommand "SetY" 210
|
||||
|
||||
LivenessCommand "start" 0
|
||||
|
||||
Var load_gif_stage = "Invisible"
|
||||
Var IDcardStageText = "Invisible"
|
||||
Var IDcardStage = "Invisible"
|
||||
|
|
@ -225,7 +233,7 @@
|
|||
Var LivenessShowString = "Pass "
|
||||
Var load_gif_stage = "Enable"
|
||||
|
||||
CROP_IMAGE "/mnt/sdcard/camera1_alter.jpg" 170 230 380 500 "/mnt/sdcard/camera1.jpg"
|
||||
CROP_IMAGE "/mnt/sdcard/camera1_alter.jpg" 170 FrameOfFaceCropImageYPosition 380 500 "/mnt/sdcard/camera1.jpg"
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_face_compare.xml"
|
||||
EndIff
|
||||
|
|
@ -234,7 +242,7 @@
|
|||
Var LivenessRestartCount = LivenessRestartCount + 1
|
||||
If LivenessRestartCount = 2 Then
|
||||
Var LivenessRestartCount = 0
|
||||
LivenessCommand "start"
|
||||
LivenessCommand "start" 0
|
||||
Var LivenessResult = "-"
|
||||
EndIf
|
||||
EndIf
|
||||
|
|
@ -249,6 +257,9 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR LivenessFramePositionX
|
||||
DEBUGVAR LivenessFramePositionY
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
|
|
@ -311,6 +322,91 @@
|
|||
</Button>
|
||||
|
||||
|
||||
; arrow up
|
||||
<Button>
|
||||
<X> 25 </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 LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; arrow down
|
||||
<Button>
|
||||
<X> 25 </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 LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
; arrow up
|
||||
<Button>
|
||||
<X> 862 </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 LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; arrow down
|
||||
<Button>
|
||||
<X> 862 </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 LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
|
|
@ -332,18 +428,18 @@
|
|||
|
||||
<Image>
|
||||
<X> 423 </X>
|
||||
<Y> 909 </Y>
|
||||
<Y> FrameOfFaceYPosition </Y>
|
||||
<State> CameraStage </State>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/bg3.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
;<Image>
|
||||
;<X> 249 </X>
|
||||
;<Y> 751 </Y>
|
||||
;<State> IDcardStage </State>
|
||||
;<Filename> "ROOT/taobin_project/image/liveness/bg1.png" </Filename>
|
||||
;</Image>
|
||||
<Image>
|
||||
<X> 196 </X>
|
||||
<Y> 737 </Y>
|
||||
<State> IDcardStage </State>
|
||||
<Filename> "ROOT/taobin_project/image/liveness/bg_21.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Text>
|
||||
<X> 0 </X>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue