-
Notifications
You must be signed in to change notification settings - Fork 21
/
Main-Identify.xaml
228 lines (228 loc) · 18.8 KB
/
Main-Identify.xaml
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<Activity mc:Ignorable="sap sap2010" x:Class="Main" VisualBasic.Settings="{x:Null}" sap:VirtualizedContainerService.HintSize="1827,1533" sap2010:WorkflowViewState.IdRef="ActivityBuilder_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:njl="clr-namespace:Newtonsoft.Json.Linq;assembly=Newtonsoft.Json" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System.Private.CoreLib" xmlns:ufa="clr-namespace:UiPath.Form.Activities;assembly=UiPath.Form.Activities" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextExpression.NamespacesForImplementation>
<scg:List x:TypeArguments="x:String" Capacity="50">
<x:String>System.Activities</x:String>
<x:String>System.Activities.Statements</x:String>
<x:String>System.Activities.Expressions</x:String>
<x:String>System.Activities.Validation</x:String>
<x:String>System.Activities.XamlIntegration</x:String>
<x:String>Microsoft.VisualBasic</x:String>
<x:String>Microsoft.VisualBasic.Activities</x:String>
<x:String>System</x:String>
<x:String>System.Collections</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Data</x:String>
<x:String>System.Diagnostics</x:String>
<x:String>System.Drawing</x:String>
<x:String>System.IO</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Net.Mail</x:String>
<x:String>System.Xml</x:String>
<x:String>System.Xml.Linq</x:String>
<x:String>UiPath.Core</x:String>
<x:String>UiPath.Core.Activities</x:String>
<x:String>System.Windows.Markup</x:String>
<x:String>GlobalVariablesNamespace</x:String>
<x:String>GlobalConstantsNamespace</x:String>
<x:String>Company.Product2.Activities.Design</x:String>
<x:String>UiPath.Shared.Activities</x:String>
<x:String>UiPathTeam.Camera.Activities</x:String>
<x:String>System.Reflection</x:String>
<x:String>UiPathTeam.CameraPackage.Activitiess</x:String>
<x:String>System.Collections.ObjectModel</x:String>
<x:String>System.ComponentModel</x:String>
<x:String>System.Runtime.Serialization</x:String>
<x:String>System.Xml.Serialization</x:String>
<x:String>UiPath.Excel</x:String>
<x:String>UiPath.Excel.Activities</x:String>
<x:String>UiPath.CSV</x:String>
<x:String>UiPath.CSV.Activities</x:String>
<x:String>UiPath.Form.Activities</x:String>
<x:String>Microsoft.VisualBasic.CompilerServices</x:String>
<x:String>Newtonsoft.Json.Linq</x:String>
<x:String>Newtonsoft.Json</x:String>
<x:String>System.Dynamic</x:String>
<x:String>System.Collections.Specialized</x:String>
<x:String>UiPath.Web.Activities</x:String>
<x:String>UiPath.UIAutomationNext.Enums</x:String>
<x:String>UiPath.UIAutomationCore.Contracts</x:String>
<x:String>UiPath.UIAutomationNext.Activities</x:String>
<x:String>UiPath.Platform.ObjectLibrary</x:String>
<x:String>UiPath.Platform.ResourceHandling</x:String>
<x:String>UiPath.Core.Activities.Storage</x:String>
<x:String>UiPath.Core.Activities.Orchestrator</x:String>
</scg:List>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<scg:List x:TypeArguments="AssemblyReference" Capacity="71">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>UiPath.Studio.Constants</AssemblyReference>
<AssemblyReference>Company.Product2.Activities</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities</AssemblyReference>
<AssemblyReference>UiPath.Mail.Activities</AssemblyReference>
<AssemblyReference>UiPath.MLServices.Activities</AssemblyReference>
<AssemblyReference>UiPath.Testing.Activities</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationCore</AssemblyReference>
<AssemblyReference>UiPathTeam.Camera.Activities</AssemblyReference>
<AssemblyReference>NPOI</AssemblyReference>
<AssemblyReference>System.Memory.Data</AssemblyReference>
<AssemblyReference>System.ComponentModel.TypeConverter</AssemblyReference>
<AssemblyReference>System.Console</AssemblyReference>
<AssemblyReference>System.Configuration.ConfigurationManager</AssemblyReference>
<AssemblyReference>System.Security.Permissions</AssemblyReference>
<AssemblyReference>System.Private.CoreLib</AssemblyReference>
<AssemblyReference>System.ComponentModel</AssemblyReference>
<AssemblyReference>System.Memory</AssemblyReference>
<AssemblyReference>System.Private.Uri</AssemblyReference>
<AssemblyReference>System.Reflection.DispatchProxy</AssemblyReference>
<AssemblyReference>System.Reflection.TypeExtensions</AssemblyReference>
<AssemblyReference>System.ObjectModel</AssemblyReference>
<AssemblyReference>System.Reflection.Metadata</AssemblyReference>
<AssemblyReference>UiPath.Workflow</AssemblyReference>
<AssemblyReference>UiPathTeam.CameraPackage.Activitiess</AssemblyReference>
<AssemblyReference>System.ComponentModel.EventBasedAsync</AssemblyReference>
<AssemblyReference>Microsoft.Win32.Primitives</AssemblyReference>
<AssemblyReference>System.ComponentModel.Primitives</AssemblyReference>
<AssemblyReference>System.Private.ServiceModel</AssemblyReference>
<AssemblyReference>System.Runtime.Serialization.Formatters</AssemblyReference>
<AssemblyReference>System.Private.DataContractSerialization</AssemblyReference>
<AssemblyReference>System.Runtime.Serialization.Primitives</AssemblyReference>
<AssemblyReference>System.Private.Xml</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.Excel</AssemblyReference>
<AssemblyReference>System.Data.Common</AssemblyReference>
<AssemblyReference>UiPath.Form.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic.Forms</AssemblyReference>
<AssemblyReference>UiPath.System.Activities.Design</AssemblyReference>
<AssemblyReference>UiPath.Python</AssemblyReference>
<AssemblyReference>System.Collections</AssemblyReference>
<AssemblyReference>netstandard</AssemblyReference>
<AssemblyReference>Newtonsoft.Json</AssemblyReference>
<AssemblyReference>System.Linq.Expressions</AssemblyReference>
<AssemblyReference>System.Collections.Specialized</AssemblyReference>
<AssemblyReference>System.Collections.NonGeneric</AssemblyReference>
<AssemblyReference>UiPath.Web.Activities</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationNext</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationNext.Activities</AssemblyReference>
<AssemblyReference>UiPath.Platform</AssemblyReference>
<AssemblyReference>System.IO.FileSystem.Watcher</AssemblyReference>
<AssemblyReference>System.IO.Packaging</AssemblyReference>
<AssemblyReference>System.IO.FileSystem.AccessControl</AssemblyReference>
<AssemblyReference>System.IO.FileSystem.DriveInfo</AssemblyReference>
</scg:List>
</TextExpression.ReferencesForImplementation>
<Sequence sap2010:Annotation.AnnotationText="This workflow should be used to identify the user, after the ML package has been trainined and made available. 
Please make sure to update the Config file with the ML Skill endpoint and API Key." DisplayName="Main Identify" sap:VirtualizedContainerService.HintSize="536,1468" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="scg:Dictionary(x:String, x:Object)" Name="Config" />
<Variable x:TypeArguments="x:String" Name="FormOutput" />
<Variable x:TypeArguments="x:String" Name="SelectedButton" />
<Variable x:TypeArguments="x:String" Name="ResultMessage" />
<Variable x:TypeArguments="x:Boolean" Name="FormDismissed" />
<Variable x:TypeArguments="x:String" Name="Form_Name" />
<Variable x:TypeArguments="x:String" Name="Form_SelectSetType" />
<Variable x:TypeArguments="x:String" Name="Form_UploadType" />
<Variable x:TypeArguments="x:String" Name="Form_PhotoPath" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Initialize Settings" sap:VirtualizedContainerService.HintSize="474,113" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_5" UnSafe="False" WorkflowFileName="Framework\InitializeSettings.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="x:String" x:Key="in_ConfigFilePath">Data/Config.xlsx</InArgument>
<OutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="out_Config">[Config]</OutArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<If Condition="[CBool(Config("CheckWindowsCredentials").ToString)]" DisplayName="If check credential is true" sap:VirtualizedContainerService.HintSize="474,389" sap2010:WorkflowViewState.IdRef="If_3">
<If.Then>
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Check User Credentials" sap:VirtualizedContainerService.HintSize="334,113" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_4" UnSafe="False" WorkflowFileName="Framework\CheckCredentials.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="x:String" x:Key="in_PythonPath">[Config("PythonPath").ToString]</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
</If.Then>
</If>
<ui:InterruptibleDoWhile CurrentIndex="{x:Null}" Condition="[Not FormDismissed]" DisplayName="Do While" sap:VirtualizedContainerService.HintSize="474,718" sap2010:WorkflowViewState.IdRef="InterruptibleDoWhile_1">
<ui:InterruptibleDoWhile.Body>
<ufa:FormActivity CreateFormActivityFileName="{x:Null}" CreateFormActivityFilePath="{x:Null}" FormFieldsInputData="{x:Null}" IconPath="{x:Null}" LocalCSSFilePath="{x:Null}" TimeoutInSeconds="{x:Null}" WindowPositionLeft="{x:Null}" WindowPositionTop="{x:Null}" CreateFormId="d0f5af3d-78e8-434c-9145-eddb624fcd03" DevTools="False" DisableMaximizeButton="False" DisableMinimizeButton="False" DisableSanitize="False" Dismissed="[FormDismissed]" DisplayName="Create Form" EnableAccessibility="False" FormFieldsOutputData="[FormOutput]" FormHeight="622" FormSchema="%[{"tag":"h1","refreshOnChange":true,"content":"Identify","key":"label3","input":false,"tableView":false,"label":"Label","type":"label"},{"refreshOnChange":true,"content":"This step will connect to the camera to capture a photo and send to the model for identification.","key":"label4","input":false,"tableView":false,"label":"Label","type":"label"},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"<p></p>\n<p></p>","refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false},{"label":"Identify","theme":"success","tableView":false,"key":"submitIdentify","custom":"instance.emit('executeDoBlock', instance.component);","input":true,"type":"button","isResetData":false},{"refreshOnChange":true,"content":"\n","key":"label1","input":false,"tableView":false,"label":"Label","type":"label"},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"<p></p>\n<p></p>\n<p></p>","refreshOnChange":false,"key":"html1","type":"htmlelement","input":false,"tableView":false},{"label":"Result","disabled":true,"tableView":true,"key":"ResultString","customConditional":"show = !!data.ResultString","type":"textarea","input":true}]" FormTheme="{}{"Activities":["FORMS"],"Id":"100120","Name":"Default","BaseCss":"./assets/css/themes/uipath.bootstrap.min.css","ImageSrc":"./assets/themeicons/uipath.png","OverrideCssUrl":"./assets/css/themes/uipath.custom.css","UserStyleOverrides":"","Properties":"","IsCustomTheme":false,"Version":1,"ThemeVersion":1}" FormTitle="Face Recognition" FormWidth="640" GenerateInputFields="False" sap:VirtualizedContainerService.HintSize="438,552" sap2010:WorkflowViewState.IdRef="FormActivity_1" IsReadOnly="False" MaxColumnsForSchemaGeneration="6" RunDoBlockFirst="False" RunInIsolatedMode="True" SelectedButton="[SelectedButton]" StartAsMinimized="False">
<ufa:FormActivity.Body>
<ActivityAction x:TypeArguments="scg:Dictionary(x:String, x:Object)">
<Sequence DisplayName="Do" sap:VirtualizedContainerService.HintSize="400,425" sap2010:WorkflowViewState.IdRef="Sequence_4">
<Sequence.Variables>
<Variable x:TypeArguments="njl:JObject" Name="DesResponse" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:DeserializeJson x:TypeArguments="njl:JObject" DisplayName="Deserialize JSON" sap:VirtualizedContainerService.HintSize="338,60" sap2010:WorkflowViewState.IdRef="DeserializeJson`1_1" JsonObject="[DesResponse]" JsonString="[FormOutput]" />
<ui:InvokeWorkflowFile ArgumentsVariable="{x:Null}" ContinueOnError="{x:Null}" DisplayName="Identify" sap:VirtualizedContainerService.HintSize="338,113" sap2010:WorkflowViewState.IdRef="InvokeWorkflowFile_12" UnSafe="False" WorkflowFileName="Framework\Identify.xaml">
<ui:InvokeWorkflowFile.Arguments>
<InArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)" x:Key="in_Config">
<VisualBasicValue x:TypeArguments="scg:Dictionary(x:String, x:Object)" ExpressionText="Config" />
</InArgument>
<OutArgument x:TypeArguments="x:String" x:Key="out_Result">
<VisualBasicReference x:TypeArguments="x:String" ExpressionText="ResultMessage" />
</OutArgument>
<InArgument x:TypeArguments="x:String" x:Key="in_PythonPath">
<VisualBasicValue x:TypeArguments="x:String" ExpressionText="Config("PythonPath").ToString" />
</InArgument>
</ui:InvokeWorkflowFile.Arguments>
</ui:InvokeWorkflowFile>
<Assign DisplayName="Assign empty photo path" sap:VirtualizedContainerService.HintSize="338,61" sap2010:WorkflowViewState.IdRef="Assign_2">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[Form_PhotoPath]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[Nothing]</InArgument>
</Assign.Value>
</Assign>
</Sequence>
</ActivityAction>
</ufa:FormActivity.Body>
<ufa:FormActivity.DelayBody>
<ActivityAction x:TypeArguments="scg:Dictionary(x:String, x:Object)">
<Delay Duration="00:00:00.2500000" sap2010:WorkflowViewState.IdRef="Delay_1" />
</ActivityAction>
</ufa:FormActivity.DelayBody>
<ufa:FormActivity.FormFieldsCollection>
<InArgument x:TypeArguments="x:String" x:Key="ResultString">
<VisualBasicValue x:TypeArguments="x:String" ExpressionText="ResultMessage" />
</InArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="yourName">
<VisualBasicReference x:TypeArguments="x:String" ExpressionText="Form_Name" />
</InOutArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="selectDatasetType">
<VisualBasicReference x:TypeArguments="x:String" ExpressionText="Form_SelectSetType" />
</InOutArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="uploadType">
<VisualBasicReference x:TypeArguments="x:String" ExpressionText="Form_UploadType" />
</InOutArgument>
<InOutArgument x:TypeArguments="x:String" x:Key="selectPhotos">
<VisualBasicReference x:TypeArguments="x:String" ExpressionText="Form_PhotoPath" />
</InOutArgument>
</ufa:FormActivity.FormFieldsCollection>
</ufa:FormActivity>
</ui:InterruptibleDoWhile.Body>
</ui:InterruptibleDoWhile>
</Sequence>
</Activity>