{"id":18451834,"url":"https://github.com/scraly/java-cloud-vision-api","last_synced_at":"2025-10-04T18:10:05.257Z","repository":{"id":84558252,"uuid":"82267981","full_name":"scraly/java-cloud-vision-api","owner":"scraly","description":"Google Cloud Vision API","archived":false,"fork":false,"pushed_at":"2017-03-19T21:00:50.000Z","size":178,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T14:08:18.525Z","etag":null,"topics":["cloud-vision","google-cloud","google-cloud-vision","java","ocr"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scraly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-17T07:06:39.000Z","updated_at":"2022-01-09T12:24:13.000Z","dependencies_parsed_at":"2023-03-11T01:16:01.306Z","dependency_job_id":null,"html_url":"https://github.com/scraly/java-cloud-vision-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scraly%2Fjava-cloud-vision-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scraly%2Fjava-cloud-vision-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scraly%2Fjava-cloud-vision-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scraly%2Fjava-cloud-vision-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scraly","download_url":"https://codeload.github.com/scraly/java-cloud-vision-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249565261,"owners_count":21292427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-vision","google-cloud","google-cloud-vision","java","ocr"],"created_at":"2024-11-06T07:29:41.359Z","updated_at":"2025-10-04T18:10:04.852Z","avatar_url":"https://github.com/scraly.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-cloud-vision-api\n\n## General\n\nGoogle [Cloud Vision API](https://cloud.google.com/vision/) enables developers to understand the content of an image by encapsulating powerful machine learning models in an easy to use REST API. It quickly classifies images into thousands of categories (e.g., \"sailboat\", \"lion\", \"Eiffel Tower\"), detects individual objects and faces within images, and finds and reads printed words contained within images. You can build metadata on your image catalog, moderate offensive content, or enable new marketing scenarios through image sentiment analysis. Analyze images uploaded in the request or integrate with your image storage on Google Cloud Storage. \n\n## Pre-requisit\n\n### Create Google Account\n\nIf you don't already have a Google Account (Gmail or Google Apps), you must create one. Sign-in to Google Cloud Platform console ([console.cloud.google.com](console.cloud.google.com)) and create a new project.\n\nRemember the project ID, a unique name across all Google Cloud projects (the name above has already been taken and will not work for you, sorry!). It will be referred to later in this codelab as PROJECT_ID.\n\nNext, you'll need to enable billing in the Developers Console in order to use Google Cloud resources like Cloud Datastore and Cloud Storage.\n\nNew users of Google Cloud Platform are eligible for a $300 free trial.\n\n### Create Credentials\n\nThe application needs to be authenticated. The simplest authentication mechanism involves passing an API key directly to the service. In using the Vision API, we recommend that you enable an API key for testing purposes, and a service account for production usage.\n\n    Visit Google Developers Console.\n    Navigate to the project you created.\n    From the left navigation, click API Manager \u003e Credentials.\n    Click Create credentials \u003e API key.\n    Choose Browser key, enter a name for this key and click Create.\n    Copy the key from the dialog box and keep it secure.\n\n### Enable Cloud Vision API\n\nThe credentials you created allow your application to authenticate with Google Cloud Vision API. Enable the Cloud Vision API:\n\n    From the left navigation, click API Manager \u003e Overview, search for the \"Cloud Vision API\".\n    Click on Cloud Vision API.\n    Click Enable API.\n\n### Execute Java Class\nIn order to interact with and test Google Cloud Vision APi, you just need to run GoogleTest Java class.\n\n`java -cp . GoogleTest`\n\n### Command Line (CLI)\nThe [gcloud beta ml](https://cloud.google.com/sdk/gcloud/reference/beta/ml/) vision command group is now available. These command allow you to analyze images with Google Cloud Vision:\n```\ngcloud beta ml vision detect-documents\ngcloud beta ml vision detect-faces\ngcloud beta ml vision detect-image-properties\ngcloud beta ml vision detect-labels\ngcloud beta ml vision detect-landmarks\ngcloud beta ml vision detect-logos\ngcloud beta ml vision detect-safe-search\ngcloud beta ml vision detect-text\ngcloud beta ml vision detect-web\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscraly%2Fjava-cloud-vision-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscraly%2Fjava-cloud-vision-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscraly%2Fjava-cloud-vision-api/lists"}