Skip to content

Commit 21ccbee

Browse files
Removed vision ga samples (GoogleCloudPlatform#4153)
* chore: removing vision product search samples which already moved to java-vision * chore: removed beta and spring framework samples which already moved to java-vision repo * chore: deleted vision GA & automl samples that have already moved to java-vision repo * updated README * Update vision/automl/README.md Co-authored-by: Averi Kitsch <akitsch@google.com> * Update vision/automl/README.md Co-authored-by: Averi Kitsch <akitsch@google.com> * updated READMEs according to feedback Co-authored-by: Averi Kitsch <akitsch@google.com>
1 parent 38edc50 commit 21ccbee

File tree

124 files changed

+12
-9385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+12
-9385
lines changed

vision/README.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,34 +36,10 @@ libraries.
3636

3737
## Samples
3838

39-
### Label Detection
40-
41-
This sample annotates an image with labels based on its content.
42-
43-
- [Java Code](label)
44-
4539
### Face Detection
4640

4741
This sample identifies faces within an image.
4842

4943
- [Quickstart Walkthrough](https://cloud.google.com/vision/docs/face-tutorial)
5044
- [Java Code](face-detection)
5145

52-
### Landmark Detection Using Google Cloud Storage
53-
54-
This sample identifies a landmark within an image stored on
55-
Google Cloud Storage.
56-
57-
- [Documentation and Java Code](landmark_detection)
58-
59-
### Text Detection Using the Vision API
60-
61-
This sample uses `TEXT_DETECTION` Vision API requests to build an inverted index
62-
from the stemmed words found in the images, and stores that index in a
63-
[Redis](redis.io) database. The example uses the
64-
[OpenNLP](https://opennlp.apache.org/) library (Open Natural Language
65-
Processing) for finding stopwords and doing stemming. The resulting index can be
66-
queried to find images that match a given set of words, and to list text that
67-
was found in each matching image.
68-
69-
[Documentation and Java Code](text)

vision/automl/README.md

Lines changed: 2 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,3 @@
1-
# AutoML Sample
2-
3-
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=vision/beta/cloud-client/README.md">
4-
<img alt="Open in Cloud Shell" src ="http://gstatic.com/cloudssh/images/open-btn.png"></a>
5-
6-
[Google Cloud AutoML Vision API][vision] provides feature detection for images.
7-
8-
This API is part of the larger collection of Cloud Machine Learning APIs.
9-
10-
This sample Java application demonstrates how to access the Cloud Vision API
11-
using the [Google Cloud Client Library for Java][google-cloud-java].
12-
13-
14-
[vision]: https://cloud.google.com/vision/automl/docs/
15-
[google-cloud-java]: https://github.com/GoogleCloudPlatform/google-cloud-java
16-
17-
## Set the environment variables
18-
19-
GOOGLE_CLOUD_PROJECT = [Id of the project]
20-
REGION_NAME = [Region name]
21-
## Build the sample
22-
23-
Install [Maven](http://maven.apache.org/).
24-
25-
Build your project with:
26-
27-
```
28-
mvn clean package
29-
```
30-
31-
### Dataset API
32-
33-
#### Create a new dataset
34-
```
35-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.DatasetApi" \
36-
-Dexec.args="create_dataset test_dataset"
37-
```
38-
39-
#### List datasets
40-
```
41-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.DatasetApi" \
42-
-Dexec.args="list_datasets"
43-
```
44-
45-
#### Get dataset
46-
```
47-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.DatasetApi" \
48-
-Dexec.args="get_dataset [dataset-id]"
49-
```
50-
51-
#### Import data
52-
```
53-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.DatasetApi" \
54-
-Dexec.args="import_data [dataset-id] gs://cloud-ml-data/img/flower_photos/train_set.csv"
55-
```
56-
57-
### Model API
58-
59-
#### Create Model
60-
```
61-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.ModelApi" \
62-
-Dexec.args="create_model [dataset-id] test_model [training-budget] "
63-
```
64-
65-
#### List Models
66-
```
67-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.ModelApi" \
68-
-Dexec.args="list_models"
69-
```
70-
71-
#### Get Model
72-
```
73-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.ModelApi" \
74-
-Dexec.args="get_model [model-id]"
75-
```
76-
77-
#### List Model Evaluations
78-
```
79-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.ModelApi" \
80-
-Dexec.args="list_model_evaluation [model-id]"
81-
```
82-
83-
#### Get Model Evaluation
84-
```
85-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.ModelApi" \
86-
-Dexec.args="get_model_evaluation [model-id] [model-evaluation-id]"
87-
```
88-
89-
#### Delete Model
90-
```
91-
mvn exec:java-Dexec.mainClass="com.google.cloud.vision.samples.automl.ModelApi" \
92-
-Dexec.args="delete_model [model-id]"
93-
```
94-
### Predict API
95-
96-
```
97-
mvn exec:java -Dexec.mainClass="com.google.cloud.vision.samples.automl.PredictionApi" \
98-
-Dexec.args="[model-id] ./resources/dandelion.jpg 0.7"
99-
```
1+
# Google AutoML Vision Samples
1002

3+
These samples have moved to [googleapis/java-automl](https://github.com/googleapis/java-automl/tree/master/samples).

vision/automl/pom.xml

Lines changed: 0 additions & 168 deletions
This file was deleted.
-52.2 KB
Binary file not shown.

vision/automl/src/main/java/com/google/cloud/vision/samples/automl/ClassificationDeployModel.java

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)