aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TCC/Tango.TCC.Service
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/TCC/Tango.TCC.Service')
-rw-r--r--Software/Visual_Studio/TCC/Tango.TCC.Service/Controllers/ColorDetectionController.cs1
-rw-r--r--Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs5
-rw-r--r--Software/Visual_Studio/TCC/Tango.TCC.Service/Web.config1
3 files changed, 7 insertions, 0 deletions
diff --git a/Software/Visual_Studio/TCC/Tango.TCC.Service/Controllers/ColorDetectionController.cs b/Software/Visual_Studio/TCC/Tango.TCC.Service/Controllers/ColorDetectionController.cs
index b3a4d4808..0c4111189 100644
--- a/Software/Visual_Studio/TCC/Tango.TCC.Service/Controllers/ColorDetectionController.cs
+++ b/Software/Visual_Studio/TCC/Tango.TCC.Service/Controllers/ColorDetectionController.cs
@@ -33,6 +33,7 @@ namespace Tango.TCC.Service.Controllers
HistogramMethod = TCCServiceConfig.HISTOGRAM_METHOD,
SimilarityTolerance = TCCServiceConfig.SIMILARITY_TOLERANCE,
EnableDoubleChecking = TCCServiceConfig.ENABLE_DOUBLE_CHECKING,
+ EnforceBarcodeDetection = TCCServiceConfig.ENFORCE_BARCODE_DETECTION,
};
}
diff --git a/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs b/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs
index 8bedaefe9..14e9ef8cc 100644
--- a/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs
+++ b/Software/Visual_Studio/TCC/Tango.TCC.Service/TCCServiceConfig.cs
@@ -68,6 +68,11 @@ namespace Tango.TCC.Service
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();
diff --git a/Software/Visual_Studio/TCC/Tango.TCC.Service/Web.config b/Software/Visual_Studio/TCC/Tango.TCC.Service/Web.config
index d2433dc9b..291a5baec 100644
--- a/Software/Visual_Studio/TCC/Tango.TCC.Service/Web.config
+++ b/Software/Visual_Studio/TCC/Tango.TCC.Service/Web.config
@@ -38,6 +38,7 @@
<add key="SIMILARITY_TOLERANCE" value="50" />
<add key="HISTOGRAM_METHOD" value="Chi_Square" />
<add key="ENABLE_DOUBLE_CHECKING" value="True" />
+ <add key="ENFORCE_BARCODE_DETECTION" value="True" />
<add key="APP_ID" value="Tdf793i4ughsiduf8749509237885ehgfdlkghlT" />