forked from GoogleCloudPlatform/spring-cloud-gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Vision BatchAnnotateFiles endpoint (GoogleCloudPlatfo…
…rm#966) Add support for Vision BatchAnnotateFiles endpoint fixes GoogleCloudPlatform#844
- Loading branch information
1 parent
b77c070
commit acbe264
Showing
10 changed files
with
342 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
37 changes: 37 additions & 0 deletions
37
...p-samples/spring-cloud-gcp-vision-api-sample/src/main/resources/templates/result_pdf.html
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,37 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="https://www.thymeleaf.org"> | ||
<head> | ||
<title>Google Cloud Vision Results</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
</head> | ||
|
||
<style> | ||
.extracted_text { | ||
width: 30em; | ||
min-height: 10em; | ||
font-family: "Lucida Console", Monaco, monospace; | ||
background-color: #f2f2f2; | ||
} | ||
|
||
.embed_pdf { | ||
width: 30em; | ||
height: 30em; | ||
} | ||
</style> | ||
|
||
<body> | ||
<h1>PDF Analysis Results</h1> | ||
|
||
<div th:if="${texts}"> | ||
<h3>We think the text inside the pdf is...</h3> | ||
<div th:each="text: ${texts}"> | ||
<h2>Page: [[${textStat.index} + 1]]</h2> | ||
<div class="extracted_text">[[${text}]]</div> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<embed th:src="${pdfUrl}" class="embed_pdf" /> | ||
</div> | ||
</body> | ||
</html> |
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
Oops, something went wrong.