/*
* 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 fill operations of instances.
///
/// http://tizen.org/feature/vision.image_recognition
/// 4
public class ImageFillConfiguration : EngineConfiguration
{
private const string KeyScaleFactor = "MV_IMAGE_RECOGNITION_OBJECT_SCALE_FACTOR";
private const string KeyMaxKeypoints = "MV_IMAGE_RECOGNITION_OBJECT_MAX_KEYPOINTS_NUM";
///
/// A read-only field that represents the default value of .
///
/// 4
public static readonly double DefaultScaleFactor = 1.2;
///
/// A read-only field that represents the default value of .
///
/// 4
public static readonly int DefaultMaxKeypoints = 1000;
///
/// Initializes a new instance of the class.
///
/// The feature is not supported.
/// 4
public ImageFillConfiguration() : base("image_recognition")
{
}
///
/// Gets or sets the scale factor the image to be recognized.
/// The value of the factor will be used for resizing of the images (objects) for recognition.
/// The default value is 1.2.
///
/// The already has been disposed of.
/// 4
public double ObjectScaleFactor
{
get
{
return GetDouble(KeyScaleFactor);
}
set
{
Set(KeyScaleFactor, value);
}
}
///
/// Gets or sets the maximum key points should be detected on the image.
/// The maximal number of key points can be selected on the image object to calculate descriptors.
/// This key points will be used for image (object) recognition and has to be specified as integer number.
/// The default value is 1000.
///
/// The already has been disposed of.
/// 4
public int ObjectMaxKeyPoints
{
get
{
return GetInt(KeyMaxKeypoints);
}
set
{
Set(KeyMaxKeypoints, value);
}
}
}
}