Skip to content

Commit

Permalink
feat(VisualRecognitionV4): add support for object metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mamoonraja committed Feb 13, 2020
1 parent cb1f3cc commit 7a4c8bb
Show file tree
Hide file tree
Showing 7 changed files with 459 additions and 2 deletions.
38 changes: 38 additions & 0 deletions Scripts/Services/VisualRecognition/V4/Model/ObjectMetadata.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
*
* 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 Newtonsoft.Json;

namespace IBM.Watson.VisualRecognition.V4.Model
{
/// <summary>
/// Basic information about an object.
/// </summary>
public class ObjectMetadata
{
/// <summary>
/// The name of the object.
/// </summary>
[JsonProperty("object", NullValueHandling = NullValueHandling.Ignore)]
public string _Object { get; set; }
/// <summary>
/// Number of bounding boxes with this object name in the collection.
/// </summary>
[JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
public virtual long? Count { get; private set; }
}
}
11 changes: 11 additions & 0 deletions Scripts/Services/VisualRecognition/V4/Model/ObjectMetadata.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions Scripts/Services/VisualRecognition/V4/Model/ObjectMetadataList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
*
* 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.Collections.Generic;
using Newtonsoft.Json;

namespace IBM.Watson.VisualRecognition.V4.Model
{
/// <summary>
/// List of objects.
/// </summary>
public class ObjectMetadataList
{
/// <summary>
/// Number of unique named objects in the collection.
/// </summary>
[JsonProperty("object_count", NullValueHandling = NullValueHandling.Ignore)]
public virtual long? ObjectCount { get; private set; }
/// <summary>
/// The objects in the collection.
/// </summary>
[JsonProperty("objects", NullValueHandling = NullValueHandling.Ignore)]
public List<ObjectMetadata> Objects { get; set; }
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
*
* 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 Newtonsoft.Json;

namespace IBM.Watson.VisualRecognition.V4.Model
{
/// <summary>
/// Basic information about an updated object.
/// </summary>
public class UpdateObjectMetadata
{
/// <summary>
/// The updated name of the object. The name can contain alphanumeric, underscore, hyphen, space, and dot
/// characters. It cannot begin with the reserved prefix `sys-`.
/// </summary>
[JsonProperty("object", NullValueHandling = NullValueHandling.Ignore)]
public string _Object { get; set; }
/// <summary>
/// Number of bounding boxes in the collection with the updated object name.
/// </summary>
[JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
public virtual long? Count { get; private set; }
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7a4c8bb

Please sign in to comment.