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";
|
|
}
|
|
}
|
}
|
}
|