|
1 | | -/** |
2 | | -* (C) Copyright IBM Corp. 2018, 2019. |
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 IBM.Cloud.SDK.Core.Model; |
20 | | -using IBM.Cloud.SDK.Core.Http; |
21 | | -using IBM.Watson.VisualRecognition.v4.Model; |
22 | | - |
23 | | -namespace IBM.Watson.VisualRecognition.v4 |
24 | | -{ |
25 | | - public partial interface IVisualRecognitionService |
26 | | - { |
27 | | - DetailedResponse<AnalyzeResponse> Analyze(string collectionIds, string features, List<FileWithMetadata> imagesFile = null, List<string> imageUrl = null, float? threshold = null); |
28 | | - DetailedResponse<Collection> CreateCollection(string name = null, string description = null); |
29 | | - DetailedResponse<CollectionsList> ListCollections(); |
30 | | - DetailedResponse<Collection> GetCollection(string collectionId); |
31 | | - DetailedResponse<Collection> UpdateCollection(string collectionId, string name = null, string description = null); |
32 | | - DetailedResponse<object> DeleteCollection(string collectionId); |
33 | | - DetailedResponse<ImageDetailsList> AddImages(string collectionId, List<FileWithMetadata> imagesFile = null, List<string> imageUrl = null, string trainingData = null); |
34 | | - DetailedResponse<ImageSummaryList> ListImages(string collectionId); |
35 | | - DetailedResponse<ImageDetails> GetImageDetails(string collectionId, string imageId); |
36 | | - DetailedResponse<object> DeleteImage(string collectionId, string imageId); |
37 | | - DetailedResponse<System.IO.MemoryStream> GetJpegImage(string collectionId, string imageId, string size = null); |
38 | | - DetailedResponse<Collection> Train(string collectionId); |
39 | | - DetailedResponse<TrainingDataObjects> AddImageTrainingData(string collectionId, string imageId, List<BaseObject> objects = null); |
40 | | - DetailedResponse<object> DeleteUserData(string customerId); |
41 | | - } |
42 | | -} |
| 1 | +/** |
| 2 | +* (C) Copyright IBM Corp. 2018, 2019. |
| 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 IBM.Cloud.SDK.Core.Model; |
| 20 | +using IBM.Cloud.SDK.Core.Http; |
| 21 | +using IBM.Watson.VisualRecognition.v4.Model; |
| 22 | + |
| 23 | +namespace IBM.Watson.VisualRecognition.v4 |
| 24 | +{ |
| 25 | + public partial interface IVisualRecognitionService |
| 26 | + { |
| 27 | + DetailedResponse<AnalyzeResponse> Analyze(string collectionIds, string features, List<FileWithMetadata> imagesFile = null, List<string> imageUrl = null, float? threshold = null); |
| 28 | + DetailedResponse<Collection> CreateCollection(string name = null, string description = null); |
| 29 | + DetailedResponse<CollectionsList> ListCollections(); |
| 30 | + DetailedResponse<Collection> GetCollection(string collectionId); |
| 31 | + DetailedResponse<Collection> UpdateCollection(string collectionId, string name = null, string description = null); |
| 32 | + DetailedResponse<object> DeleteCollection(string collectionId); |
| 33 | + DetailedResponse<ImageDetailsList> AddImages(string collectionId, List<FileWithMetadata> imagesFile = null, List<string> imageUrl = null, string trainingData = null); |
| 34 | + DetailedResponse<ImageSummaryList> ListImages(string collectionId); |
| 35 | + DetailedResponse<ImageDetails> GetImageDetails(string collectionId, string imageId); |
| 36 | + DetailedResponse<object> DeleteImage(string collectionId, string imageId); |
| 37 | + DetailedResponse<System.IO.MemoryStream> GetJpegImage(string collectionId, string imageId, string size = null); |
| 38 | + DetailedResponse<Collection> Train(string collectionId); |
| 39 | + DetailedResponse<TrainingDataObjects> AddImageTrainingData(string collectionId, string imageId, List<BaseObject> objects = null); |
| 40 | + DetailedResponse<object> DeleteUserData(string customerId); |
| 41 | + } |
| 42 | +} |
0 commit comments