Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: migrate code from googleapis/java-vision #7428

Merged
merged 252 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
2cf98b5
samples: Generalized testDetextWebEntitiesIncludeGeoResults. (#976)
kurtisvg Jan 3, 2018
e30bf0a
samples: Update of Flexible folder and the top-level parent pom. (#1…
kurtisvg Jan 23, 2018
d6dd6b1
samples: Fix tests due to backend changes (#1081)
nnegrey Apr 3, 2018
045dcf3
samples: Add vision ocr for pdf/tiff (#1078)
nnegrey Apr 3, 2018
27150e7
samples: Update vision dependency version and fix test. (#1099)
dzlier-gcp Jun 4, 2018
a29ccf3
samples: Vision beta samples (#1154)
nirupa-kumar Jul 23, 2018
f878bf5
samples: Vision region tag update (#1182)
alixhami Aug 15, 2018
671f09d
samples: Udpate Beta Vision samples to use beta tags (#1184)
alixhami Aug 16, 2018
f8b76b9
samples: Remove unused Vision samples and region tags (#1208)
alixhami Sep 10, 2018
6bcea63
samples: Beta feature : Vision : PDF/TIFF/GIF document feature detect…
nirupa-kumar Mar 20, 2019
cf6be3e
samples: vision: address flakes due to collisions. (#1458)
shollyman Jun 11, 2019
d1dd367
samples: Fix failing beta tets (#1592)
nnegrey Sep 30, 2019
c6d960f
feat: make repo releasable, add parent/bom (#1)
chingor13 Oct 25, 2019
0dc1c97
chore: update common templates, regenerate tests (#20)
yoshi-automation Nov 19, 2019
4d10a2a
chore(regen): update license year for generated files (#48)
yoshi-automation Jan 24, 2020
5360828
samples: fix generated samples directory (#70)
chingor13 Feb 27, 2020
5fa597e
samples: add scaffold (#84)
yoshi-automation Mar 19, 2020
2525df3
chore(deps): update dependency com.google.cloud:libraries-bom to v4.3…
renovate-bot Mar 23, 2020
e6eea78
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Mar 26, 2020
f9e9370
samples: docs: update tests that are failing or not cleaning up resou…
nnegrey Mar 26, 2020
b96a737
samples: update shared config (#2443)
averikitsch Mar 27, 2020
7d41927
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Mar 30, 2020
51d25b6
chore(deps): update dependency com.google.cloud:libraries-bom to v4.4…
renovate-bot Apr 1, 2020
eb92891
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 6, 2020
bec2db9
chore(deps): update dependency com.google.cloud:libraries-bom to v4.4…
renovate-bot Apr 6, 2020
8cace17
chore(deps): update dependency com.google.cloud:libraries-bom to v5 (…
renovate-bot Apr 14, 2020
d36aea8
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 16, 2020
3106bb0
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 17, 2020
123444a
chore(deps): update dependency com.google.cloud:libraries-bom to v5.2…
renovate-bot Apr 24, 2020
6079106
chore(deps): update dependency com.google.cloud:libraries-bom to v5.3…
renovate-bot Apr 28, 2020
d4b0d8b
chore(deps): update dependency com.google.cloud:libraries-bom to v5.4…
renovate-bot May 19, 2020
e666b51
chore(deps): update dependency com.google.cloud:libraries-bom to v5.6…
renovate-bot Jun 9, 2020
0f3d981
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Jun 10, 2020
c168e52
chore(deps): update dependency com.google.cloud:libraries-bom to v5.7…
renovate-bot Jun 10, 2020
6ef3ad6
chore(deps): update dependency com.google.cloud:libraries-bom to v6 (…
renovate-bot Jun 16, 2020
1978275
chore(deps): update dependency com.google.cloud:libraries-bom to v7 (…
renovate-bot Jun 17, 2020
1f996ad
chore(deps): update dependency com.google.cloud:libraries-bom to v7.0…
renovate-bot Jun 22, 2020
dc03ad9
chore(deps): update dependency com.google.cloud:libraries-bom to v7.0…
renovate-bot Jun 23, 2020
8b99c3d
chore(deps): update dependency com.google.cloud:libraries-bom to v8 (…
renovate-bot Jun 26, 2020
6535771
chore(deps): update dependency com.google.cloud:libraries-bom to v8.1…
renovate-bot Jul 16, 2020
cc36793
Merge remote-tracking branch 'dpe/master' into samples-vision-beta-cl…
chingor13 Aug 3, 2020
8ade000
samples: Cloud Client Vision How-to snippets (#485)
gguuss Jan 17, 2017
a00c405
samples: Adds GCS snippets, was blocked by https://goo.gl/uWgYhQ
gguuss Feb 8, 2017
5cd0c01
samples: Fixes checkstyle, 3P libs before java libs
gguuss Feb 8, 2017
07854d2
samples: Updates vision to the latest library (#548)
gguuss Mar 6, 2017
10bc194
samples: Updates snippets so the API client is created in examples (#…
gguuss Mar 20, 2017
e898767
samples: Infer project from env
Mar 21, 2017
ed5aac3
samples: Vision speech upgrade (#641)
gguuss May 2, 2017
2b3dc90
samples: Changes http test to point to better hosting.
gguuss May 12, 2017
0e86748
samples: Use Cloud Storage bucket for web URI test
gguuss May 12, 2017
84bf63a
samples: Style nit
gguuss May 12, 2017
82f2281
samples: Change test to public GCS bucket.
gguuss May 15, 2017
405bf5b
samples: Change test to environment variable.
gguuss May 15, 2017
8fae22b
samples: updating to latest google-cloud-* dependencies (#723)
jabubake Jun 19, 2017
f1ee2bd
samples: Closes image annotator client.
gguuss Jul 6, 2017
404aafb
samples: Uses try with resource to ensure client gets closed.
gguuss Jul 10, 2017
1f14cfb
samples: upgrade Guava (#802)
lesv Aug 10, 2017
e07dcd7
samples: Don't check for location (#809)
lesv Aug 15, 2017
e087b28
samples: Vision v1p1beta1 samples (#951)
nnegrey Dec 12, 2017
cb74e9f
samples: Update vision folder. (#999)
kurtisvg Jan 23, 2018
33e8784
samples: Update vision/beta web detection samples to v1 (#1016)
nnegrey Feb 6, 2018
c22d639
samples: Fix tests for backend changes (#1082)
nnegrey Apr 3, 2018
4225a14
samples: Update vision dependency version and fix test. (#1099)
dzlier-gcp Jun 4, 2018
5ddaadc
samples: Update OCR sample from beta to ga (#1123)
nnegrey Jun 11, 2018
224a4cd
samples: Vision region tag update (#1182)
alixhami Aug 15, 2018
02bd4fc
samples: Vision GA - library update (#1213)
nirupa-kumar Sep 24, 2018
16df5e8
samples: vision: address changes in vision annotations. (#1326)
shollyman Feb 6, 2019
81da681
samples: vision: address flakes due to collisions. (#1458)
shollyman Jun 11, 2019
91cd1b3
samples: Fix failing tests (#1591)
nnegrey Sep 30, 2019
4bc5d6a
samples: Add vision ocr set endpoint snippets (#1748)
nnegrey Dec 17, 2019
a53314e
samples: vision: change flaky tests to mocks (#2254)
nnegrey Feb 27, 2020
6056b61
samples: vision: move samples out of branch (#2298)
nnegrey Mar 3, 2020
c7d3878
samples: vision: move samples out of branch and add clarifying commen…
nnegrey Mar 3, 2020
d94ee76
samples: fix: region tag (#2312)
nnegrey Mar 4, 2020
aac8ea5
samples: vision: makes tests more generic (#2475)
nnegrey Mar 23, 2020
1f8b0aa
samples: update shared config (#2443)
averikitsch Mar 27, 2020
3a4cd0c
samples: chore: added comment on try/catch block (#2980)
munkhuushmgl May 28, 2020
aae141f
samples: chore: splitting sample into single files (#3083)
munkhuushmgl Jun 9, 2020
f7e31d8
samples: fix test dependencies
chingor13 Aug 13, 2020
0dc3e54
Merge branch 'master' into samples-vision-beta-cloud-client
chingor13 Aug 13, 2020
12ac760
samples: fix resources
chingor13 Aug 13, 2020
6e92e60
samples: Vision Product Search (#1161)
nirupa-kumar Jul 24, 2018
3ab6fff
samples: Vision region tag update (#1182)
alixhami Aug 15, 2018
3ff8d26
samples: Adding the Product Search tests. (#1195)
nirupa-kumar Aug 27, 2018
f1f8c14
samples: Added the Product Search tests and the src file updates (#1196)
nirupa-kumar Aug 27, 2018
7cfeb1a
samples: Vision Product Search - GA (#1257)
nirupa-kumar Nov 27, 2018
ec71795
samples: Pdt search updates (#1473)
nnegrey Jun 18, 2019
a61d4d4
samples: Purge Products (#1569)
munkhuushmgl Sep 6, 2019
80283cb
samples: vision: update product search tests (#2378)
nnegrey Mar 11, 2020
4f87e12
samples: vision: use uuid for product search tests
nnegrey Mar 13, 2020
133742d
samples: Update ImportProductSetsIT.java
nnegrey Mar 13, 2020
ec0f0c6
samples: bump timeouts
nnegrey Mar 13, 2020
04a446d
samples: update shared config (#2443)
averikitsch Mar 27, 2020
9153a84
samples: fix resources and dependencies
chingor13 Aug 13, 2020
57b736c
samples: fix resources
chingor13 Aug 13, 2020
f1a5c1e
samples: migrate samples from GoogleCloudPlatform/java-docs-samples /…
chingor13 Aug 13, 2020
5c05ff4
chore(deps): update dependency com.google.cloud:libraries-bom to v9 (…
renovate-bot Aug 14, 2020
8a541e1
chore(deps): update dependency com.google.cloud:libraries-bom to v9.1.0
renovate-bot Aug 17, 2020
b31d914
chore(deps): update dependency com.google.cloud:libraries-bom to v10
renovate-bot Sep 10, 2020
0cc22bd
chore(deps): update dependency com.google.cloud:libraries-bom to v11
renovate-bot Sep 24, 2020
e589bca
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Oct 2, 2020
1a14ace
chore(deps): update dependency com.google.cloud:libraries-bom to v12 …
renovate-bot Oct 6, 2020
eab1bc3
test(deps): update dependency junit:junit to v4.13.1
renovate-bot Oct 12, 2020
ba753e0
chore(deps): update dependency com.google.cloud:libraries-bom to v12.…
renovate-bot Oct 15, 2020
acc6bf9
chore(deps): update dependency com.google.cloud:libraries-bom to v13 …
renovate-bot Oct 21, 2020
561ef22
test(deps): update dependency com.google.truth:truth to v1.1 (#274)
renovate-bot Oct 22, 2020
7264b49
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 23, 2020
7c74d95
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 26, 2020
39d19d4
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 30, 2020
3b8249c
chore: moving the rest of the vision samples (#291)
munkhuushmgl Nov 2, 2020
32a8b13
samples(deps): update spring.version to v2.3.5.release (#305)
renovate-bot Nov 2, 2020
9f9399c
chore(deps): update dependency com.google.cloud:libraries-bom to v14 …
renovate-bot Nov 4, 2020
db1e45f
chore(deps): update dependency com.google.cloud:libraries-bom to v15 …
renovate-bot Nov 5, 2020
9ba287e
chore(deps): update dependency com.google.cloud:libraries-bom to v16 …
renovate-bot Nov 19, 2020
472cc44
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Dec 16, 2020
82d55f5
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Jan 7, 2021
1dfe140
samples(deps): update dependency org.springframework.cloud:spring-clo…
renovate-bot Jan 7, 2021
15b3ae1
samples(deps): update spring.version to v2.4.1 (#320)
renovate-bot Jan 7, 2021
1f25685
samples(deps): update spring.version to v2.4.2 (#374)
renovate-bot Jan 28, 2021
6b7d4aa
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Feb 10, 2021
31dce1a
test(deps): update dependency junit:junit to v4.13.2 (#397)
renovate-bot Feb 16, 2021
b16f681
test(samples): prevent failure in nightly run by adding retry (#392)
munkhuushmgl Feb 19, 2021
b341769
chore(deps): update dependency com.google.cloud:libraries-bom to v17 …
renovate-bot Feb 24, 2021
ca818a9
samples(deps): update dependency com.google.cloud:google-cloud-core t…
renovate-bot Feb 24, 2021
6f11508
samples(deps): update spring.version to v2.4.3 (#402)
renovate-bot Feb 24, 2021
ed6ba4f
samples(deps): update dependency org.springframework.cloud:spring-clo…
renovate-bot Feb 24, 2021
a239088
chore(deps): update dependency com.google.cloud:libraries-bom to v18 …
renovate-bot Feb 25, 2021
d87b26c
deps: update dependency com.google.cloud:google-cloud-core to v1.94.2…
renovate-bot Mar 2, 2021
af1be1a
chore(deps): update dependency com.google.cloud:libraries-bom to v18.…
renovate-bot Mar 3, 2021
0227330
chore(deps): update dependency com.google.cloud:libraries-bom to v19 …
renovate-bot Mar 4, 2021
3739f07
deps: update dependency com.google.cloud:google-cloud-core to v1.94.3…
renovate-bot Mar 4, 2021
f4dde14
chore(deps): update dependency com.google.cloud:libraries-bom to v19.…
renovate-bot Mar 17, 2021
669d066
chore(deps): update dependency com.google.cloud:libraries-bom to v19.…
renovate-bot Mar 19, 2021
c966ffc
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 9, 2021
4edf904
chore(deps): update dependency com.google.cloud:libraries-bom to v20 …
renovate-bot Apr 12, 2021
c1211ba
deps: update dependency net.sourceforge.argparse4j:argparse4j to v0.9…
renovate-bot Apr 12, 2021
1d082a8
deps: update dependency com.google.cloud:google-cloud-core to v1.94.7…
renovate-bot Apr 12, 2021
1f39930
deps: update spring.version to v2.4.4 (#448)
renovate-bot Apr 12, 2021
7706e2f
deps: update spring.version to v2.4.5 (#474)
renovate-bot Apr 15, 2021
ac0277b
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Apr 19, 2021
2775ad5
chore: service throttles on public URLs & its known issue. (#477)
munkhuushmgl Apr 20, 2021
21e2aac
deps: update dependency com.google.cloud:google-cloud-core to v1.94.8…
renovate-bot Apr 23, 2021
6fb0f5a
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Apr 29, 2021
f4380b3
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 13, 2021
9bef302
test(deps): update dependency com.google.truth:truth to v1.1.2 (#498)
renovate-bot May 14, 2021
51ab8bd
deps: update dependency org.springframework.cloud:spring-cloud-gcp-de…
renovate-bot May 14, 2021
2e1042a
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 17, 2021
d2dc58a
test(deps): update dependency com.google.truth:truth to v1.1.3 (#520)
renovate-bot May 26, 2021
cdadd3e
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 31, 2021
4b92da3
deps: update spring.version to v2.5.0 (#516)
renovate-bot May 31, 2021
454d428
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jun 7, 2021
7439686
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Jun 7, 2021
8ce7721
deps: update dependency com.google.cloud:google-cloud-core to v1.95.1…
renovate-bot Jun 9, 2021
f71444f
deps: update dependency com.google.cloud:google-cloud-core to v1.95.2…
renovate-bot Jun 15, 2021
8e125f0
deps: update spring.version to v2.5.1 (#544)
renovate-bot Jun 16, 2021
6f02751
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jun 23, 2021
6930614
deps: update spring.version to v2.5.2 (#566)
renovate-bot Jun 25, 2021
bbf423e
deps: update dependency com.google.cloud:google-cloud-core to v1.95.4…
renovate-bot Jul 2, 2021
94b1264
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jul 9, 2021
de44975
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jul 27, 2021
063ff85
deps: update dependency com.google.cloud:google-cloud-core to v2 (#599)
renovate-bot Aug 6, 2021
ee0557f
deps: update dependency org.apache.commons:commons-csv to v1.9.0 (#598)
renovate-bot Aug 6, 2021
656e748
deps: update dependency com.google.cloud:google-cloud-core to v2.0.3 …
renovate-bot Aug 11, 2021
7f39f54
deps: update dependency com.google.cloud:google-cloud-core to v2.0.5 …
renovate-bot Aug 12, 2021
f8ab210
deps: update spring.version to v2.5.4 (#581)
renovate-bot Aug 19, 2021
a0e0d62
chore(deps): update dependency com.google.cloud:libraries-bom to v21 …
renovate-bot Aug 19, 2021
35596ef
deps: update dependency com.google.cloud:google-cloud-core to v2.1.0 …
renovate-bot Aug 24, 2021
c5efca8
deps: update dependency com.google.cloud:google-cloud-core to v2.1.1 …
renovate-bot Aug 24, 2021
7f9ce47
chore(deps): update dependency com.google.cloud:libraries-bom to v22 …
renovate-bot Aug 27, 2021
6286dd9
deps: update dependency com.google.cloud:google-cloud-core to v2.1.2 …
renovate-bot Aug 31, 2021
6c181a1
chore(deps): update dependency com.google.cloud:libraries-bom to v23 …
renovate-bot Sep 8, 2021
a62a0a0
chore: migrate to owlbot (#663)
Neenu1995 Sep 8, 2021
3caa77d
deps: update dependency com.google.cloud:google-cloud-core to v2.1.3 …
renovate-bot Sep 15, 2021
3e84c99
deps: update dependency com.google.cloud:google-cloud-core to v2.1.4 …
renovate-bot Sep 16, 2021
9dc9e1c
deps: update dependency com.google.cloud:google-cloud-core to v2.1.6 …
renovate-bot Sep 22, 2021
110b073
deps: update spring.version to v2.5.5 (#703)
renovate-bot Sep 24, 2021
62ac530
deps: update dependency com.google.cloud:google-cloud-core to v2.1.7 …
renovate-bot Sep 24, 2021
8136b30
chore(deps): update dependency com.google.cloud:libraries-bom to v23.…
renovate-bot Oct 1, 2021
9641063
deps: update dependency com.google.cloud:google-cloud-core to v2.2.0 …
renovate-bot Oct 18, 2021
9076127
deps: update spring.version to v2.5.6 (#729)
renovate-bot Oct 25, 2021
91e2020
chore(deps): update dependency com.google.cloud:libraries-bom to v24 …
renovate-bot Oct 27, 2021
caa25ae
deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 …
renovate-bot Nov 15, 2021
d52e848
deps: update dependency com.google.cloud:google-cloud-core to v2.3.1 …
renovate-bot Nov 17, 2021
3013e86
deps: update spring.version to v2.6.0 (#749)
renovate-bot Nov 19, 2021
bec7f83
deps: update dependency com.google.cloud:google-cloud-core to v2.3.2 …
renovate-bot Dec 3, 2021
fd2a9ca
deps: update dependency com.google.cloud:google-cloud-core to v2.3.3 …
renovate-bot Dec 5, 2021
cc7680c
deps: update dependency org.springframework.boot:spring-boot-starter-…
renovate-bot Dec 6, 2021
087ca6b
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Dec 6, 2021
61002e8
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Dec 8, 2021
feefeaf
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Dec 28, 2021
b2fe2f8
deps: update dependency com.google.cloud:google-cloud-core to v2.3.4 …
renovate-bot Jan 7, 2022
378646f
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Jan 7, 2022
bf0d62f
deps: update dependency com.google.cloud:google-cloud-core to v2.3.5 …
renovate-bot Jan 7, 2022
6ed7e83
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Jan 12, 2022
2c6c4c0
deps: update spring.version to v2.6.3 (#768)
renovate-bot Jan 25, 2022
1b94298
deps: update dependency com.google.cloud:google-cloud-core to v2.4.0 …
renovate-bot Feb 2, 2022
3434828
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Feb 8, 2022
8237607
deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 …
renovate-bot Feb 9, 2022
3c0d440
deps: update dependency com.google.cloud:google-cloud-core to v2.5.1 …
renovate-bot Feb 10, 2022
35e479d
deps: update dependency com.google.cloud:google-cloud-core to v2.5.3 …
renovate-bot Feb 11, 2022
48f79e3
deps: update dependency com.google.cloud:google-cloud-core to v2.5.4 …
renovate-bot Feb 15, 2022
66b2f4a
deps: update dependency com.google.cloud:google-cloud-core to v2.5.5 …
renovate-bot Mar 1, 2022
388f7f8
deps: update dependency com.google.cloud:google-cloud-core to v2.5.6 …
renovate-bot Mar 2, 2022
6ee0995
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Mar 3, 2022
9f5af86
deps: update dependency org.springframework.boot:spring-boot-maven-pl…
renovate-bot Mar 3, 2022
1fe2d56
deps: update dependency com.google.cloud:google-cloud-core to v2.5.8 …
renovate-bot Mar 9, 2022
dfc6618
deps: update dependency com.google.cloud:google-cloud-core to v2.5.9 …
renovate-bot Mar 10, 2022
3c1f87c
chore(deps): update dependency com.google.cloud:libraries-bom to v25 …
renovate-bot Mar 14, 2022
fbdfee9
deps: update dependency com.google.cloud:google-cloud-core to v2.5.10…
renovate-bot Mar 14, 2022
fafa48f
deps: update spring.version to v2.6.5 (#855)
renovate-bot Mar 25, 2022
66902f2
deps: update dependency com.google.cloud:google-cloud-core to v2.5.11…
renovate-bot Mar 30, 2022
8ff77e7
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Apr 1, 2022
498ff6c
build(deps): bump spring-boot-starter-web in /samples/spring-framewor…
dependabot[bot] Apr 6, 2022
ecae3c3
deps: update dependency com.google.cloud:google-cloud-core to v2.6.1 …
renovate-bot Apr 15, 2022
1c548a2
deps: update spring.version to v2.6.7 (#888)
renovate-bot Apr 21, 2022
3fa1ed1
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Apr 27, 2022
dcec6a3
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot May 16, 2022
4d45ceb
deps: update spring.version to v2.7.0 (#908)
renovate-bot May 19, 2022
5324671
deps: update dependency com.google.cloud:google-cloud-core to v2.7.1 …
renovate-bot May 19, 2022
abe72bc
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Jun 6, 2022
f569450
deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 …
renovate-bot Jun 22, 2022
a5e9df1
deps: update spring.version to v2.7.1 (#925)
renovate-bot Jun 23, 2022
00ff40f
deps: update dependency com.google.cloud:google-cloud-core to v2.8.1 …
renovate-bot Jul 1, 2022
0d588f4
chore(deps): update dependency com.google.cloud:libraries-bom to v26 …
renovate-bot Jul 15, 2022
3e6ea02
deps: update spring.version to v2.7.2 (#951)
renovate-bot Jul 21, 2022
8ec7b79
deps: update dependency com.google.cloud:google-cloud-core to v2.8.6 …
renovate-bot Aug 2, 2022
9a83746
deps: update dependency com.google.cloud:google-cloud-core to v2.8.7 …
renovate-bot Aug 3, 2022
5e9a342
deps: update dependency com.google.cloud:google-cloud-core to v2.8.8 …
renovate-bot Aug 4, 2022
02d56a6
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 30, 2022
e1b07ea
deps: update spring.version to v2.7.3 (#974)
renovate-bot Aug 30, 2022
efa7a15
deps: update dependency com.google.cloud:google-cloud-core to v2.8.9 …
renovate-bot Aug 30, 2022
1a73a41
deps: update dependency com.google.cloud:google-cloud-core to v2.8.10…
renovate-bot Aug 30, 2022
9aafe84
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 31, 2022
27b1d2b
deps: update dependency com.google.cloud:google-cloud-core to v2.8.11…
renovate-bot Sep 9, 2022
a22e5fb
deps: update dependency com.google.cloud:google-cloud-core to v2.8.12…
renovate-bot Sep 20, 2022
1686964
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Sep 20, 2022
7f037e6
deps: update dependency com.google.cloud:google-cloud-core to v2.8.13…
renovate-bot Sep 20, 2022
5e77a58
deps: update dependency com.google.cloud:google-cloud-core to v2.8.14…
renovate-bot Sep 21, 2022
37de0e7
deps: update spring.version to v2.7.4 (#994)
renovate-bot Sep 22, 2022
5169ca6
deps: update dependency com.google.cloud:google-cloud-core to v2.8.18…
renovate-bot Sep 30, 2022
2e6e95d
deps: update dependency com.google.cloud:google-cloud-core to v2.8.19…
renovate-bot Oct 2, 2022
17799c8
deps: update dependency com.google.cloud:google-cloud-core to v2.8.20…
renovate-bot Oct 6, 2022
5b309e0
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Oct 10, 2022
c003a73
deps: update dependency com.google.cloud:google-cloud-core to v2.8.21…
renovate-bot Nov 9, 2022
b2f038c
Merge remote-tracking branch 'migration/main' into java-vision-migration
Shabirmean Nov 15, 2022
e6fe913
chore: post migration updates - groupId, artifact url, repo references
Shabirmean Nov 15, 2022
cf99214
chore: fix region tags violations
Shabirmean Nov 15, 2022
ef9fafa
chore: fix deprecated API usage
Shabirmean Nov 15, 2022
552f362
chore: fix samples tests
Shabirmean Nov 16, 2022
f9a3c81
Merge branch 'main' into java-vision-migration
Shabirmean Nov 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions vision/snippets/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.vision</groupId>
<artifactId>vision-snippets</artifactId>
<packaging>jar</packaging>
<name>Google Cloud Vision Snippets</name>
<url>https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/vision</url>

<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not affect the execution of the samples in anyway.
-->
<parent>
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.2.0</version>
</parent>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>


<!-- [START vision_install_with_bom] -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.1.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-vision</artifactId>
</dependency>
<!-- [START_EXCLUDE] -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.argparse4j</groupId>
<artifactId>argparse4j</artifactId>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-core</artifactId>
<version>2.8.21</version>
<scope>test</scope>
<classifier>tests</classifier>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>1.1.3</version>
<scope>test</scope>
</dependency>
<!-- [END_EXCLUDE] -->
</dependencies>
<!-- [END vision_install_with_bom] -->
</project>
Binary file added vision/snippets/resources/city.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/snippets/resources/face_no_surprise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/snippets/resources/gcp-logos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/snippets/resources/handwritten.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions vision/snippets/resources/indexed_product_sets.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"gs://java-docs-samples-testing/product-search/shoes_1.jpg","indexed_product_set_id_for_testing","indexed_product_id_for_testing_1","apparel","style=womens","0.1,0.1,0.9,0.1,0.9,0.9,0.1,0.9"
"gs://java-docs-samples-testing/product-search/shoes_2.jpg","indexed_product_set_id_for_testing","indexed_product_id_for_testing_2","apparel",,
Binary file added vision/snippets/resources/kafka.pdf
Binary file not shown.
Binary file added vision/snippets/resources/landmark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/snippets/resources/logos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions vision/snippets/resources/product_sets.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"gs://java-docs-samples-testing/product-search/shoes_1.jpg","fake_product_set_id_for_testing","fake_product_id_for_testing_1","apparel","style=womens","0.1,0.1,0.9,0.1,0.9,0.9,0.1,0.9"
"gs://java-docs-samples-testing/product-search/shoes_2.jpg","fake_product_set_id_for_testing","fake_product_id_for_testing_2","apparel",,
Binary file added vision/snippets/resources/puppies.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/snippets/resources/shoes_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/snippets/resources/shoes_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/snippets/resources/text.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vision/snippets/resources/wakeupcat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
/*
* Copyright 2019 Google LLC
*
* 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.
*/

package com.example.vision;

// [START vision_async_batch_annotate_images_beta]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.Page;
import com.google.cloud.storage.Blob;
import com.google.cloud.storage.Bucket;
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.Storage.BlobListOption;
import com.google.cloud.storage.StorageOptions;
import com.google.cloud.vision.v1p4beta1.AnnotateImageRequest;
import com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest;
import com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse;
import com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse;
import com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse.Builder;
import com.google.cloud.vision.v1p4beta1.Feature;
import com.google.cloud.vision.v1p4beta1.Feature.Type;
import com.google.cloud.vision.v1p4beta1.GcsDestination;
import com.google.cloud.vision.v1p4beta1.Image;
import com.google.cloud.vision.v1p4beta1.ImageAnnotatorClient;
import com.google.cloud.vision.v1p4beta1.ImageSource;
import com.google.cloud.vision.v1p4beta1.OperationMetadata;
import com.google.cloud.vision.v1p4beta1.OutputConfig;
import com.google.protobuf.util.JsonFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class AsyncBatchAnnotateImagesGcs {

// Performs asynchronous batch annotation of images on Google Cloud Storage
public static void asyncBatchAnnotateImagesGcs(String gcsSourcePath, String gcsDestinationPath)
throws Exception {
// String gcsSourcePath = "gs://YOUR_BUCKET_ID/path_to_your_data";
// String gcsDestinationPath = "gs://YOUR_BUCKET_ID/path_to_store_annotation";
try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) {
List<AnnotateImageRequest> requests = new ArrayList<>();

ImageSource imgSource = ImageSource.newBuilder().setImageUri(gcsSourcePath).build();

Image image = Image.newBuilder().setSource(imgSource).build();

// Set the GCS destination path for where to save the results.
GcsDestination gcsDestination =
GcsDestination.newBuilder().setUri(gcsDestinationPath).build();

// Create the configuration for the output with the batch size.
// The batch size sets how many pages should be grouped into each json output file.
OutputConfig outputConfig =
OutputConfig.newBuilder().setGcsDestination(gcsDestination).setBatchSize(2).build();

// Select the Features required by the vision API
Feature features =
Feature.newBuilder()
.setType(Type.LABEL_DETECTION)
.setType(Type.TEXT_DETECTION)
.setType(Type.IMAGE_PROPERTIES)
.build();

// Build the request
AnnotateImageRequest annotateImageRequest =
AnnotateImageRequest.newBuilder().setImage(image).addFeatures(features).build();

requests.add(annotateImageRequest);
AsyncBatchAnnotateImagesRequest request =
AsyncBatchAnnotateImagesRequest.newBuilder()
.addAllRequests(requests)
.setOutputConfig(outputConfig)
.build();

OperationFuture<AsyncBatchAnnotateImagesResponse, OperationMetadata> response =
client.asyncBatchAnnotateImagesAsync(request);
System.out.println("Waiting for the operation to finish.");

// we're not processing the response, since we'll be reading the output from GCS.
response.get(180, TimeUnit.SECONDS);

// Once the request has completed and the output has been
// written to GCS, we can list all the output files.
Storage storage = StorageOptions.getDefaultInstance().getService();

// Get the destination location from the gcsDestinationPath
Pattern pattern = Pattern.compile("gs://([^/]+)/(.+)");
Matcher matcher = pattern.matcher(gcsDestinationPath);

if (matcher.find()) {
String bucketName = matcher.group(1);
String prefix = matcher.group(2);

// Get the list of objects with the given prefix from the GCS bucket
Bucket bucket = storage.get(bucketName);
Page<Blob> pageList = bucket.list(BlobListOption.prefix(prefix));

Blob firstOutputFile = null;

// List objects with the given prefix.
System.out.println("Output files:");
for (Blob blob : pageList.iterateAll()) {
System.out.println(blob.getName());

// Process the first output file from GCS.
// Since we specified batch size = 2, the first response contains
// the first two image requests
if (firstOutputFile == null) {
firstOutputFile = blob;
}
}

// Get the contents of the file and convert the JSON contents to an
// BatchAnnotateImagesResponse
// object. If the Blob is small read all its content in one request
// (Note: the file is a .json file)
// Storage guide: https://cloud.google.com/storage/docs/downloading-objects
String jsonContents = new String(firstOutputFile.getContent());
Builder builder = BatchAnnotateImagesResponse.newBuilder();
JsonFormat.parser().merge(jsonContents, builder);

// Build the AnnotateFileResponse object
BatchAnnotateImagesResponse batchAnnotateImagesResponse = builder.build();

// Here we print the response for the first image
// The response contains more information:
// annotation/pages/blocks/paragraphs/words/symbols/colors
// including confidence score and bounding boxes
System.out.format("\nResponse: %s\n", batchAnnotateImagesResponse.getResponses(0));

} else {
System.out.println("No MATCH");
}
} catch (Exception e) {
System.out.println("Error during asyncBatchAnnotateImagesGcs: \n" + e.toString());
}
}
}

// [END vision_async_batch_annotate_images_beta]
Loading