Skip to content

Commit 7a4c8bb

Browse files
committed
feat(VisualRecognitionV4): add support for object metadata
1 parent cb1f3cc commit 7a4c8bb

File tree

7 files changed

+459
-2
lines changed

7 files changed

+459
-2
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2018, 2020.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using Newtonsoft.Json;
19+
20+
namespace IBM.Watson.VisualRecognition.V4.Model
21+
{
22+
/// <summary>
23+
/// Basic information about an object.
24+
/// </summary>
25+
public class ObjectMetadata
26+
{
27+
/// <summary>
28+
/// The name of the object.
29+
/// </summary>
30+
[JsonProperty("object", NullValueHandling = NullValueHandling.Ignore)]
31+
public string _Object { get; set; }
32+
/// <summary>
33+
/// Number of bounding boxes with this object name in the collection.
34+
/// </summary>
35+
[JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
36+
public virtual long? Count { get; private set; }
37+
}
38+
}

Scripts/Services/VisualRecognition/V4/Model/ObjectMetadata.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2018, 2020.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using System.Collections.Generic;
19+
using Newtonsoft.Json;
20+
21+
namespace IBM.Watson.VisualRecognition.V4.Model
22+
{
23+
/// <summary>
24+
/// List of objects.
25+
/// </summary>
26+
public class ObjectMetadataList
27+
{
28+
/// <summary>
29+
/// Number of unique named objects in the collection.
30+
/// </summary>
31+
[JsonProperty("object_count", NullValueHandling = NullValueHandling.Ignore)]
32+
public virtual long? ObjectCount { get; private set; }
33+
/// <summary>
34+
/// The objects in the collection.
35+
/// </summary>
36+
[JsonProperty("objects", NullValueHandling = NullValueHandling.Ignore)]
37+
public List<ObjectMetadata> Objects { get; set; }
38+
}
39+
}

Scripts/Services/VisualRecognition/V4/Model/ObjectMetadataList.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2018, 2020.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using Newtonsoft.Json;
19+
20+
namespace IBM.Watson.VisualRecognition.V4.Model
21+
{
22+
/// <summary>
23+
/// Basic information about an updated object.
24+
/// </summary>
25+
public class UpdateObjectMetadata
26+
{
27+
/// <summary>
28+
/// The updated name of the object. The name can contain alphanumeric, underscore, hyphen, space, and dot
29+
/// characters. It cannot begin with the reserved prefix `sys-`.
30+
/// </summary>
31+
[JsonProperty("object", NullValueHandling = NullValueHandling.Ignore)]
32+
public string _Object { get; set; }
33+
/// <summary>
34+
/// Number of bounding boxes in the collection with the updated object name.
35+
/// </summary>
36+
[JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
37+
public virtual long? Count { get; private set; }
38+
}
39+
}

Scripts/Services/VisualRecognition/V4/Model/UpdateObjectMetadata.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)