This commit is contained in:
kong 2023-05-10 21:40:13 +07:00
parent a080479633
commit a397fc5708
24 changed files with 653 additions and 31 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

BIN
image/liveness/arrow_up.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

View file

@ -18,6 +18,22 @@
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
Var DirImage = "ROOT/taobin_project/image/page3"
EndIf
If CountryName = "Malaysia" Then
If LanguageShow = "ENG" Then
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
Var DirImage = "ROOT/taobin_project/image/page3_en"
Var ice_tab_text = "Ice will be ready at "
EndIf
If LanguageShow = "MALAY" Then
Var DirImage2 = "ROOT/taobin_project/image/drink_option_myr/"
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
Var DirImage = "ROOT/taobin_project/image/page3"
EndIf
EndIf
If ICE_PROCESS_STATUS = 2 Then

View file

@ -12,7 +12,7 @@
idx_img = 2
idx_hot_product_code = 6
idx_hot_product_code = 7
idx_cold_product_code = idx_hot_product_code + 1
idx_blend_product_code = idx_cold_product_code + 1
idx_hot_product_code2 = idx_blend_product_code + 1

View file

@ -674,19 +674,21 @@
Var CountDownCheckCamera = 2
If Not#CameraSettingStatus = "" Then
DEBUGVAR CameraCount
If CameraCount = 1 Then
Var CountDownCheckCamera = 2
CameraSetting "usbfront" "default" "Rotate=90,Resolution=1280x720,scaleX=1.0,scaleY=0.7"
Else
Var CountDownCheckCamera = 5
EndIf
Else
Var CountDownCheckCamera = 20
EndIf
;Var CountDownCheckCamera = 2
;If Not#CameraSettingStatus = "" Then
; DEBUGVAR CameraCount
; If CameraCount = 1 Then
;
; Var CountDownCheckCamera = 2
; CameraSetting "usbfront" "default" "Rotate=90,Resolution=1280x720,scaleX=1.0,scaleY=0.7"
; Else
; Var CountDownCheckCamera = 5
; EndIf
;Else
; Var CountDownCheckCamera = 20
;EndIf
Var CountDownCheckCamera = 10
DEBUGVAR EnableLiveness
DEBUGVAR LivenessLicenseFailNumber
@ -896,7 +898,7 @@
EndIf
;DEBUGVAR CountDownCheckCamera
;DEBUGVAR Not#CameraSettingStatus
DEBUGVAR Not#CameraSettingStatus
If CountDownCheckCamera = 0 Then
If Not#CameraSettingStatus = "" Then

View file

@ -525,7 +525,7 @@
Var block_index_override = 0
Var block_index_move = 0
</Script>
; menu_new_list 29
; menu_new_list 31
; ==================> Len = 11
; 12-02-01-0001 12-02-02-0001 12-02-03-0001
<Block>
@ -2310,8 +2310,8 @@ GINGER TEA" </Value>
<EventOnClick>
Var NameDrink = "THAI MILK TEA"
Var NameDrinkTH = "ชานมไทย "
Var DrinkDescriptionTH = "ชาไทย และ นมอุ่น"
Var DrinkDescription = "Thai tea, Sugar, Warm milk"
Var DrinkDescriptionTH = "ชาไทย และ นม"
Var DrinkDescription = "Thai tea, Sugar, milk"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_hot_thai_milk_tea_chatramue.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-02-01-0039.Price
@ -2390,7 +2390,7 @@ GINGER TEA" </Value>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> "ชาไทย และ นมอุ่น" </Value>
<Value> "ชาไทย และ นม" </Value>
</Text>
<Text>
<X> 16 </X>
@ -2411,7 +2411,7 @@ GINGER TEA" </Value>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> "Thai tea, Sugar, Warm milk" </Value>
<Value> "Thai tea, Sugar, milk" </Value>
</Text>
<Image>
<X> 16 </X>
@ -5066,6 +5066,510 @@ LIMENADE" </Value>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 11
; 12-02-01-0045 12-02-02-0045 -
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-02-01-0045.Button,12-02-02-0045.Button,$Sum12020100451202020045) </State>
<Button>
<State> $Sum12020100451202020045 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_jasmine_tea.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_jasmine_tea.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_jasmine_tea.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "JASMINE TEA"
Var NameDrinkTH = "ชามะลิ"
Var DrinkDescriptionTH = "ชามะลิ น้ำ "
Var DrinkDescription = "Jasmine Tea ,Water"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_jasmine_tea.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-02-01-0045.Price
Var PriceD2 = $12-02-02-0045.Price
Var PriceD3 = $-.Price
Var PD_CODE1 = "12-02-01-0045"
Var PD_CODE2 = "12-02-02-0045"
Var PD_CODE3 = "##-##-##-####"
Var PD_STAGE_1 = $12-02-01-0045.Button
Var PD_STAGE_2 = $12-02-02-0045.Button
Var PD_STAGE_3 = "Disable2"
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "12-02-02-0045"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-02-01-0045"
Else
Topping "Load" "-"
EndIf
EndIf
Var menu_name_eng_hot = $12-02-01-0045.NameE
Var menu_desc_eng_hot = $12-02-01-0045.descriptionE
Var menu_name_thai_hot = $12-02-01-0045.Name
Var menu_desc_thai_hot = $12-02-01-0045.description
Var menu_name_eng_cold = $12-02-02-0045.NameE
Var menu_desc_eng_cold = $12-02-02-0045.descriptionE
Var menu_name_thai_cold = $12-02-02-0045.Name
Var menu_desc_thai_cold = $12-02-02-0045.description
Var menu_name_eng_blender = $##-##-##-####.NameE
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
Var menu_name_thai_blender = $##-##-##-####.Name
Var menu_desc_thai_blender = $##-##-##-####.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
</EventOnClick>
</Button>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> "ชามะลิ" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> "ชามะลิ น้ำ " </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> "JASMINE TEA" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> "Jasmine Tea ,Water" </Value>
</Text>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>
</Image>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<State> $12-02-01-0045.Button </State>
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
</Image>
<Text>
<X> 50 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-02-01-0045.Button </State>
<Value> StringFmt( $12-02-01-0045.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
<State> $12-02-02-0045.Button </State>
</Image>
<Text>
<X> 115 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-02-02-0045.Button </State>
<Value> StringFmt( $12-02-02-0045.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 146 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> "Invisible" </State>
</Image>
<Text>
<X> 180 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
If $Sum12020100451202020045 = "Disable" Then
Var ice_tab_process_show = "Disable"
Else
Var ice_tab_process_show = "Enable"
EndIf
Else
Var ice_tab_process_show = "Invisible"
EndIf
Var return = ice_tab_process_show
)
</State>
<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>
<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>
</Image>
<Image>
<X> 49 </X>
<Y> 117 </Y>
<State>
eval(
If $Sum12020100451202020045 = "Disable" Then
STRCONTAIN "ERR" $12-02-01-0045.TAG tag1_is_disable
STRCONTAIN "ERR" $12-02-02-0045.TAG tag2_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag2_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag3_is_disable = "true" Then
Var return = "Enable"
EndIf
Else
Var return = "Invisible"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>
</Image>
<Text>
<X> 84 </X>
<Y> 266 </Y>
<Size> 10 </Size>
<Font> OpunMediumTTF </Font>
<Color> 0xDE794E </Color>
<State> ice_tab_process_show </State>
<Value> ice_show_open </Value>
</Text>
<Text>
<X> 48 </X>
<Y> 116 </Y>
<Size> 32 </Size>
<Width>128</Width>
<Height>64</Height>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Mode> "disable-show" </Mode>
<State> $Sum12020100451202020045 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 11
; 12-02-01-0046 12-02-02-0046 -
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-02-01-0046.Button,12-02-02-0046.Button,$Sum12020100461202020046) </State>
<Button>
<State> $Sum12020100461202020046 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_jasmine_milk_tea.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_jasmine_milk_tea.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_jasmine_milk_tea.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "JASMINE MILK TEA"
Var NameDrinkTH = "ชามะลิลาเต้"
Var DrinkDescriptionTH = "ชามะลิ และนม"
Var DrinkDescription = "Jasmine & Milk"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_jasmine_milk_tea.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-02-01-0046.Price
Var PriceD2 = $12-02-02-0046.Price
Var PriceD3 = $-.Price
Var PD_CODE1 = "12-02-01-0046"
Var PD_CODE2 = "12-02-02-0046"
Var PD_CODE3 = "##-##-##-####"
Var PD_STAGE_1 = $12-02-01-0046.Button
Var PD_STAGE_2 = $12-02-02-0046.Button
Var PD_STAGE_3 = "Disable2"
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "12-02-02-0046"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-02-01-0046"
Else
Topping "Load" "-"
EndIf
EndIf
Var menu_name_eng_hot = $12-02-01-0046.NameE
Var menu_desc_eng_hot = $12-02-01-0046.descriptionE
Var menu_name_thai_hot = $12-02-01-0046.Name
Var menu_desc_thai_hot = $12-02-01-0046.description
Var menu_name_eng_cold = $12-02-02-0046.NameE
Var menu_desc_eng_cold = $12-02-02-0046.descriptionE
Var menu_name_thai_cold = $12-02-02-0046.Name
Var menu_desc_thai_cold = $12-02-02-0046.description
Var menu_name_eng_blender = $##-##-##-####.NameE
Var menu_desc_eng_blender = $##-##-##-####.descriptionE
Var menu_name_thai_blender = $##-##-##-####.Name
Var menu_desc_thai_blender = $##-##-##-####.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
</EventOnClick>
</Button>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> "ชามะลิลาเต้" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> "ชามะลิ และนม" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> "JASMINE MILK TEA" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> "Jasmine & Milk" </Value>
</Text>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>
</Image>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<State> $12-02-01-0046.Button </State>
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
</Image>
<Text>
<X> 50 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-02-01-0046.Button </State>
<Value> StringFmt( $12-02-01-0046.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
<State> $12-02-02-0046.Button </State>
</Image>
<Text>
<X> 115 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-02-02-0046.Button </State>
<Value> StringFmt( $12-02-02-0046.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 146 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> "Invisible" </State>
</Image>
<Text>
<X> 180 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
If $Sum12020100461202020046 = "Disable" Then
Var ice_tab_process_show = "Disable"
Else
Var ice_tab_process_show = "Enable"
EndIf
Else
Var ice_tab_process_show = "Invisible"
EndIf
Var return = ice_tab_process_show
)
</State>
<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>
<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>
</Image>
<Image>
<X> 49 </X>
<Y> 117 </Y>
<State>
eval(
If $Sum12020100461202020046 = "Disable" Then
STRCONTAIN "ERR" $12-02-01-0046.TAG tag1_is_disable
STRCONTAIN "ERR" $12-02-02-0046.TAG tag2_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag2_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag3_is_disable = "true" Then
Var return = "Enable"
EndIf
Else
Var return = "Invisible"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>
</Image>
<Text>
<X> 84 </X>
<Y> 266 </Y>
<Size> 10 </Size>
<Font> OpunMediumTTF </Font>
<Color> 0xDE794E </Color>
<State> ice_tab_process_show </State>
<Value> ice_show_open </Value>
</Text>
<Text>
<X> 48 </X>
<Y> 116 </Y>
<Size> 32 </Size>
<Width>128</Width>
<Height>64</Height>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Mode> "disable-show" </Mode>
<State> $Sum12020100461202020046 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 16

View file

@ -34,6 +34,10 @@
Var Timeout = Timeout + 1
DEBUGVAR Timeout
DEBUGVAR MachineStage
DEBUGVAR NextOrder
If Door_Open_flagBlink = 0 Then
Var Door_Open_flagBlink = 1
Var Door_Open_State="Enable"

View file

@ -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>