-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(VisualRecognitionV4): add support for object metadata
- Loading branch information
1 parent
cb1f3cc
commit 7a4c8bb
Showing
7 changed files
with
459 additions
and
2 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
Scripts/Services/VisualRecognition/V4/Model/ObjectMetadata.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
11
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.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
Scripts/Services/VisualRecognition/V4/Model/ObjectMetadataList.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Scripts/Services/VisualRecognition/V4/Model/ObjectMetadataList.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
Scripts/Services/VisualRecognition/V4/Model/UpdateObjectMetadata.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Scripts/Services/VisualRecognition/V4/Model/UpdateObjectMetadata.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.