-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathRecognitionParams.cs
More file actions
45 lines (39 loc) · 1.2 KB
/
RecognitionParams.cs
File metadata and controls
45 lines (39 loc) · 1.2 KB
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
using System.Collections.Generic;
namespace Regula.DocumentReader.WebClient.Model.Ext
{
public class RecognitionParams : ProcessParams
{
public RecognitionParams WithCustomParams(Dictionary<string, object> customParams){
CustomParams = customParams;
return this;
}
public RecognitionParams WithResultTypeOutput(List<Result> resultTypes) {
ResultTypeOutput = resultTypes;
return this;
}
public RecognitionParams WithAuthParam(AuthParams authParams) {
AuthParams = authParams;
return this;
}
public RecognitionParams WithFaceApi(string url) {
FaceApi = new FaceApi(url);
UseFaceApi = true;
return this;
}
public RecognitionParams WithScenario(Scenario scenario)
{
Scenario = scenario;
return this;
}
public RecognitionParams WithLog(bool log)
{
Log = log;
return this;
}
public RecognitionParams WithProcessAuth(long processAuth)
{
ProcessAuth = processAuth;
return this;
}
}
}