зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-30 05:26:05 +02:00
157 строки
8.6 KiB
HTML
157 строки
8.6 KiB
HTML
|
|
|
|
<!DOCTYPE html>
|
|
<html class="writer-html5" lang="en" data-content_root="./">
|
|
<head>
|
|
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Instructions how to generate and enable a google Cloud Vision API key — AMMICO 0.2.2 documentation</title>
|
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b86133f3" />
|
|
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
|
|
|
|
|
<script src="_static/jquery.js?v=5d32c60e"></script>
|
|
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
|
|
<script src="_static/documentation_options.js?v=000c92bf"></script>
|
|
<script src="_static/doctools.js?v=9bcbadda"></script>
|
|
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
|
|
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
|
|
<script src="_static/js/theme.js"></script>
|
|
<link rel="index" title="Index" href="genindex.html" />
|
|
<link rel="search" title="Search" href="search.html" />
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav">
|
|
<div class="wy-grid-for-nav">
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
|
<div class="wy-side-scroll">
|
|
<div class="wy-side-nav-search" >
|
|
|
|
|
|
|
|
<a href="index.html" class="icon icon-home">
|
|
AMMICO
|
|
</a>
|
|
<div role="search">
|
|
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
|
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
<input type="hidden" name="area" value="default" />
|
|
</form>
|
|
</div>
|
|
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
|
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="readme_link.html">AMMICO - AI-based Media and Misinformation Content Analysis Tool</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="faq_link.html">FAQ</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="create_API_key_link.html">Instructions how to generate and enable a google Cloud Vision API key</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="notebooks/DemoNotebook_ammico.html">AMMICO Demonstration Notebook</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="notebooks/DemoNotebook_ammico.html#Step-0:-Create-and-set-a-Google-Cloud-Vision-Key">Step 0: Create and set a Google Cloud Vision Key</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="notebooks/DemoNotebook_ammico.html#Step-1:-Read-your-data-into-AMMICO">Step 1: Read your data into AMMICO</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="notebooks/DemoNotebook_ammico.html#The-detector-modules">The detector modules</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="modules.html">AMMICO package modules</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="license_link.html">License</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
|
<a href="index.html">AMMICO</a>
|
|
</nav>
|
|
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content">
|
|
<div role="navigation" aria-label="Page navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
|
|
<li class="breadcrumb-item active">Instructions how to generate and enable a google Cloud Vision API key</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
<a href="https://github.com/ssciwr/AMMICO/blob/main/docs/source/set_up_credentials.md" class="fa fa-github"> Edit on GitHub</a>
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
<div itemprop="articleBody">
|
|
|
|
<section id="instructions-how-to-generate-and-enable-a-google-cloud-vision-api-key">
|
|
<h1>Instructions how to generate and enable a google Cloud Vision API key<a class="headerlink" href="#instructions-how-to-generate-and-enable-a-google-cloud-vision-api-key" title="Link to this heading"></a></h1>
|
|
<ol class="arabic simple">
|
|
<li><p>Go to <a class="reference external" href="https://cloud.google.com/vision">google-cloud-vision</a> and click on “Console”. Sign into your google account / create a new google account if prompted. This will bring you to the following page, where you click on “project” in the top of the screen.
|
|
<img alt="img0" src="_images/img0.png" /></p></li>
|
|
<li><p>Select “project” from the top left drop-down menu.
|
|
<img alt="img1" src="_images/img1.png" /></p></li>
|
|
<li><p>Click on “NEW PROJECT” on the left of the pop-up window.
|
|
<img alt="img2" src="_images/img2.png" /></p></li>
|
|
<li><p>Enter a project name and click on “CREATE”.
|
|
<img alt="img3" src="_images/img3.png" /></p></li>
|
|
<li><p>Now you should be back on the dashboard. In the top right, click on the three vertical dots.
|
|
<img alt="img4" src="_images/img4.png" /></p></li>
|
|
<li><p>In the drop-down menu, select “Project settings”.
|
|
<img alt="img5" src="_images/img5.png" /></p></li>
|
|
<li><p>In the menu on the left, click on “Service Accounts”.
|
|
<img alt="img6" src="_images/img6.png" /></p></li>
|
|
<li><p>Click on “+ CREATE SERVICE ACCOUNT”.
|
|
<img alt="img7" src="_images/img7.png" /></p></li>
|
|
<li><p>Select a service account ID (you can pick this as any name you wish). Click on “DONE”.
|
|
<img alt="img8" src="_images/img8.png" /></p></li>
|
|
<li><p>Now your service account should show up in the list of service accounts.
|
|
<img alt="img9" src="_images/img9.png" /></p></li>
|
|
<li><p>Click on the three vertical dots to the right of your service account name and select “Manage keys”.
|
|
<img alt="img10" src="_images/img10.png" /></p></li>
|
|
<li><p>Click on “Create new key”.
|
|
<img alt="img11" src="_images/img11.png" /></p></li>
|
|
<li><p>In the pop-up window, select “JSON” and click “CREATE”.
|
|
<img alt="img12" src="_images/img12.png" /></p></li>
|
|
<li><p>The private key is directly downloaded to your computer. It should be in your downloads folder.
|
|
<img alt="img13" src="_images/img13.png" /></p></li>
|
|
<li><p>The JSON key file will look something like this (any private information has been blanked out in the screenshot).
|
|
<img alt="img14" src="_images/img14.png" /></p></li>
|
|
<li><p>Now go back to your browser window. Click on “Google Cloud” in the top left corner.
|
|
<img alt="img15" src="_images/img15.png" /></p></li>
|
|
<li><p>Now select “APIs & Services”.
|
|
<img alt="img16" src="_images/img16.png" /></p></li>
|
|
<li><p>From the selection of APIs, select “Cloud Vision API” or search for it and then select.
|
|
<img alt="img17" src="_images/img17.png" /></p></li>
|
|
<li><p>Click on “ENABLE”.
|
|
<img alt="img18" src="_images/img18.png" /></p></li>
|
|
<li><p>Google Cloud Vision API is now enabled for your key.
|
|
<img alt="img19" src="_images/img19.png" /></p></li>
|
|
<li><p>Place the JSON key in a selected folder on your computer and reference this key in your Jupyter Notebook / Python console when running ammico. Or, upload it to your google Drive to use it on google Colaboratory.</p></li>
|
|
<li><p>Make sure that <a class="reference external" href="https://support.google.com/googleapi/answer/6158867?hl=en">billing is enabled</a> for your google account. You can get the first three month for free; after that, you will be charged if processing more than 1000 images / month (currently $1.50 per 1000 images, see <a class="reference external" href="https://cloud.google.com/vision/pricing/">here</a>).</p></li>
|
|
</ol>
|
|
</section>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>© Copyright 2022, Scientific Software Center, Heidelberg University.</p>
|
|
</div>
|
|
|
|
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
|
|
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
|
|
provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
|
|
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script>
|
|
jQuery(function () {
|
|
SphinxRtdTheme.Navigation.enable(true);
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html> |