wxr
2023-07-17 23d7cefd31bd431dd177b3b5267331e070c5fc5f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
using System;
using HDL_ON.UI.CSS;
using Shared;
 
namespace HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock
{
    public class VideoDoorlockFaceUnlockHelpPage : FrameLayout
    {
        FrameLayout bodyView;
 
 
        public VideoDoorlockFaceUnlockHelpPage()
        {
            bodyView = this;
        }
 
 
        public void LoadPage()
        {
 
            new TopViewDiv(bodyView, Language.StringByID(StringId.TriggerMode)).LoadTopView();
            bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
 
            var contentView = new VerticalScrolViewLayout()
            {
                Y = Application.GetRealHeight(64),
                Height = Application.GetRealHeight(667 - 64),
            };
            bodyView.AddChidren(contentView);
 
            //DoorlockHelpImage
 
            var btnImage1 = new Button()
            {
                Height = Application.GetRealWidth(180),
                UnSelectedImagePath = "FunctionIcon/DoorLock/DoorlockHelpImage1.png"
            };
            contentView.AddChidren(btnImage1);
 
            var msgView1 = new FrameLayout()
            {
                Height = Application.GetRealHeight(253),
            };
            contentView.AddChidren(msgView1);
 
            var btnMsg1Title = new Button()
            {
                X = Application.GetRealWidth(16),
                Y = Application.GetRealHeight(20),
                Width = Application.GetRealWidth(343),
                Height = Application.GetRealHeight(49),
                TextAlignment = TextAlignment.CenterLeft,
                TextSize = CSS_FontSize.SubheadingFontSize,
                TextColor = CSS_Color.FirstLevelTitleColor,
                Text = "录入前"
            };
            msgView1.AddChidren(btnMsg1Title);
 
            var btnMsg1Tip = new Button()
            {
                X = Application.GetRealWidth(16),
                Y = btnMsg1Title.Bottom,
                Width = Application.GetRealWidth(343),
                Height = Application.GetRealHeight(184),
                TextAlignment = TextAlignment.CenterLeft,
                IsMoreLines = true,
                TextSize = CSS_FontSize.TextFontSize,
                TextColor = CSS_Color.FirstLevelTitleColor,
                Text = "请到门锁旁,按门锁set键,使用主用户登录菜单,选择“添加用户-添加人脸”/“用户管理-用户编号-添加人脸”。以下是几个需要注意的点:\r\n" +
                        "\r\n1、为了保证录入效果,请在关门的情况下录入人脸(关门前请确保有其他开门方式可进门)。\r\n" +
                        "\r\n2、录入时请露出清晰的面部特征,不要佩戴帽子、口罩。\r\n"
            };
            msgView1.AddChidren(btnMsg1Tip);
 
            var btnImage2 = new Button()
            {
                Height = Application.GetRealWidth(132),
                UnSelectedImagePath = "FunctionIcon/DoorLock/DoorlockHelpImage2.png"
            };
            contentView.AddChidren(btnImage2);
 
            var msgView2 = new FrameLayout()
            {
                Height = Application.GetRealHeight(129),
            };
            contentView.AddChidren(msgView2);
 
            var btnMsg2Title = new Button()
            {
                X = Application.GetRealWidth(16),
                Y = Application.GetRealHeight(20),
                Width = Application.GetRealWidth(343),
                Height = Application.GetRealHeight(49),
                TextAlignment = TextAlignment.CenterLeft,
                TextSize = CSS_FontSize.SubheadingFontSize,
                TextColor = CSS_Color.FirstLevelTitleColor,
                Text = "录入中"
            };
            msgView2.AddChidren(btnMsg2Title);
 
            var btnMsg2Tip = new Button()
            {
                X = Application.GetRealWidth(16),
                Y = btnMsg1Title.Bottom,
                Width = Application.GetRealWidth(343),
                Height = Application.GetRealHeight(60),
                TextAlignment = TextAlignment.CenterLeft,
                IsMoreLines = true,
                TextSize = CSS_FontSize.TextFontSize,
                TextColor = CSS_Color.FirstLevelTitleColor,
                Text = "1、请站在锁正前方,并与锁具保持一臂距离(50cm左右)进行采集。\r\n",
            };
            msgView2.AddChidren(btnMsg2Tip);
 
            var btnImage3 = new Button()
            {
                Height = Application.GetRealWidth(180),
                UnSelectedImagePath = "FunctionIcon/DoorLock/DoorlockHelpImage3.png"
            };
            contentView.AddChidren(btnImage3);
 
            var btnMsg3 = new Button()
            {
                X = Application.GetRealWidth(16),
                Width = Application.GetRealWidth(343),
                Height = Application.GetRealHeight(104),
                TextAlignment = TextAlignment.CenterLeft,
                IsMoreLines = true,
                TextSize = CSS_FontSize.TextFontSize,
                TextColor = CSS_Color.FirstLevelTitleColor,
                Text = "2、录入时请跟随语音指导微微转动头部,以竖直或水平线为轴,转动幅度请控制在30度以内。\r\n"
            };
            contentView.AddChidren(btnMsg3);
 
            var btnImage4 = new Button()
            {
                Height = Application.GetRealWidth(204),
                UnSelectedImagePath = "FunctionIcon/DoorLock/DoorlockHelpImage4.png"
            };
            contentView.AddChidren(btnImage4);
 
            if(Language.CurrentLanguage != "Chinese")
            {
                btnMsg1Title.Text = "Before entry";
 
                btnMsg1Tip.Text = "Please go to the door lock, press the door lock set key, use the main user login menu, select 'Add User -Add Face'/'User Management -User ID - Add Face'. Here are a few points to note: \r\n"
                                    + "\r\n1.To ensure the recording effect, please input your face while closing the door(please ensure that there are other door opening methods available before closing the door). \r\n"
                                    + "\r\n2.Please show clear facial features when entering, and do not wear hats or masks.\r\n";
 
                btnMsg2Title.Text = "Entering";
 
                btnMsg2Tip.Text = "1. Please stand in front of the lock and maintain an arm's distance (approximately 50cm) from the lock for collection.\r\n";
 
                btnMsg3.Text = "2. When entering, please follow the voice guidance to slightly rotate the head, using a vertical or horizontal line as the axis, and the rotation amplitude should be controlled within 30 degrees.\r\n";
 
            }
 
        }
    }
}