Configuration in SmartFace Platform
Values can be defined in SmartFace.{servicename}.appsettings.json file next to binary.
For example - the appsettings configuration for service VideoDataAggregator looks like this:
"Aggregation": { |
Or via command line parameters:
Aggregation:AggregationSimilarityThreshold=45 Aggregation:TrackletAggregationPeriodMs=3000 Aggregation:MatchRequestParallelism=3 Aggregation:Export=Standard |
Or by setting environment variables:
Aggregation__AggregationSimilarityThreshold |
Priority of configuration is as follows: Console Args → Env variables → AppSettings.
Definitions in the SmartFace.{servicename}.appsettings.json file are generated during installation process. Changes to this file may cause incorrect behavior and will be lost after reinstallation. Ctreate and use SmartFace.appsettings.user.json or environment variables instead
More information about configuration dotnet core applications in general could be found here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-6.0#non-prefixed-environment-variables