blob: 343d27e0a1741f25a59d469f6f31f67c335d44d1 (
plain)
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
|
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using Tango.TCC.BL;
using Tango.Web;
namespace Tango.TCC.Service
{
public class TCCServiceConfig : WebConfig
{
public static String JWT_TOKEN_SECRET => ConfigurationManager.AppSettings[nameof(JWT_TOKEN_SECRET)].ToString();
/// <summary>
/// Gets the number of card columns.
/// </summary>
public static int CARD_COLUMNS => int.Parse(ConfigurationManager.AppSettings[nameof(CARD_COLUMNS)].ToString());
/// <summary>
/// Gets the number of card rows.
/// </summary>
public static int CARD_ROWS => int.Parse(ConfigurationManager.AppSettings[nameof(CARD_ROWS)].ToString());
/// <summary>
/// Gets the card target index (hole).
/// </summary>
public static int CARD_TARGET_INDEX => int.Parse(ConfigurationManager.AppSettings[nameof(CARD_TARGET_INDEX)].ToString());
/// <summary>
/// Gets the template image base64 string.
/// </summary>
public static String TEMPLATE_STRING => ConfigurationManager.AppSettings[nameof(TEMPLATE_STRING)].ToString();
/// <summary>
/// Gets the desired width of the sample image.
/// </summary>
public static int SAMPLE_WIDTH => int.Parse(ConfigurationManager.AppSettings[nameof(SAMPLE_WIDTH)].ToString());
/// <summary>
/// Gets the desired height of the sample image.
/// </summary>
public static int SAMPLE_HEIGHT => int.Parse(ConfigurationManager.AppSettings[nameof(SAMPLE_HEIGHT)].ToString());
/// <summary>
/// Gets the recommended camera resolution width.
/// </summary>
public static int CAMERA_WIDTH => int.Parse(ConfigurationManager.AppSettings[nameof(CAMERA_WIDTH)].ToString());
/// <summary>
/// Gets the recommended camera resolution height.
/// </summary>
public static int CAMERA_HEIGHT => int.Parse(ConfigurationManager.AppSettings[nameof(CAMERA_HEIGHT)].ToString());
/// <summary>
/// Gets the histogram similarity tolerance.
/// </summary>
public static double SIMILARITY_TOLERANCE => int.Parse(ConfigurationManager.AppSettings[nameof(SIMILARITY_TOLERANCE)].ToString());
/// <summary>
/// Gets the histogram comparison method.
/// </summary>
public static CardDetectionHistogramMethods HISTOGRAM_METHOD => (CardDetectionHistogramMethods)Enum.Parse(typeof(CardDetectionHistogramMethods), ConfigurationManager.AppSettings[nameof(HISTOGRAM_METHOD)].ToString());
/// <summary>
/// Gets a value indicating whether to perform a double check of the card arucos.
/// </summary>
public static bool ENABLE_DOUBLE_CHECKING => bool.Parse(ConfigurationManager.AppSettings[nameof(ENABLE_DOUBLE_CHECKING)].ToString());
/// <summary>
/// Gets a value indicating whether the card will be detected only when barcode detection is successful.
/// </summary>
public static bool ENFORCE_BARCODE_DETECTION => bool.Parse(ConfigurationManager.AppSettings[nameof(ENFORCE_BARCODE_DETECTION)].ToString());
/// <summary>
/// Gets the mobile application ID.
/// </summary>
public static String APP_ID => ConfigurationManager.AppSettings[nameof(APP_ID)].ToString();
/// <summary>
/// Gets the database catalog.
/// </summary>
public static String TANGO_DB_CATALOG => ConfigurationManager.AppSettings[nameof(TANGO_DB_CATALOG)].ToString();
}
}
|