/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
namespace Tizen.Multimedia.Vision
{
///
/// Represents a configuration of instances.
///
/// http://tizen.org/feature/vision.face_recognition
/// http://tizen.org/feature/vision.image_recognition
/// 3
public class PersonRecognitionConfiguration : SurveillanceEngineConfiguration
{
private const string KeyFaceRecognitionModelFilePath = "MV_SURVEILLANCE_FACE_RECOGNITION_MODEL_FILE_PATH";
///
/// Initializes a new instance of the class.
///
/// Path to the face recognition model.
/// is null.
/// The required features are not supported.
/// 3
public PersonRecognitionConfiguration(string modelPath)
{
FaceRecognitionModelPath = modelPath;
}
///
/// Gets or sets face recognition model file path.
///
/// is null.
/// The already has been disposed of.
/// 3
public string FaceRecognitionModelPath
{
get
{
return GetString(KeyFaceRecognitionModelFilePath);
}
set
{
if (value == null)
{
throw new ArgumentNullException(nameof(FaceRecognitionModelPath));
}
Set(KeyFaceRecognitionModelFilePath, value);
}
}
}
}