https://github.com/kiwionly/vivid
Vivid is a simple Google Vision java client with much simple api and less dependencies
https://github.com/kiwionly/vivid
google-cloud-vsion google-vision-api
Last synced: 29 days ago
JSON representation
Vivid is a simple Google Vision java client with much simple api and less dependencies
- Host: GitHub
- URL: https://github.com/kiwionly/vivid
- Owner: kiwionly
- Created: 2017-09-23T12:30:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-08T05:41:58.000Z (over 6 years ago)
- Last Synced: 2025-03-05T06:28:58.495Z (over 1 year ago)
- Topics: google-cloud-vsion, google-vision-api
- Language: Java
- Homepage:
- Size: 265 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/kiwionly/vivid)
Vivid = Google Vision java Client
=================================
Vivid is a simple Google Vision java client with much simple api and less dependencies.
```sh
RequestBuilder builder = new RequestBuilder()
.content(toBase64(new File("test/text.jpg")))
.addFeature(FeatureType.TEXT_DETECTION);
Request request = builder.build();
List requests = new ArrayList<>();
requests.add(request);
Result result = post("test text OCR", requests);
TextAnnotation ann = result.getResponses().get(0).getFullTextAnnotation().get(0);
assertNull(result.getErrors());
assertTrue(ann.getText().contains("GPS"));
assertTrue(ann.getText().contains("3.81730"));
assertTrue(ann.getText().contains("永泰饼家"));
```
dependecies:
```sh
compile 'com.alibaba:fastjson:1.+'
compile 'com.squareup.okhttp3:okhttp:3.+'
```
Refer to unit test for difference scenario.
The Version is sync with Google Vision version. E.g. vivid version 1.0 == Google Vision v1.