Search: AI, Hybrid, Classic

  • Pricing
  • Contact Us
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
    • Live Demos
    • Blog
Menu
  • Pricing
  • Contact Us
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
    • Live Demos
    • Blog
Search
Search
Search
Search

Home » Your configuration journey, step by step » Add-ons » AI Image and OCR APIs add-on » Google Vision

Google Vision

811 views 0 January 22, 2021

 

What is the “Google Vision” API?

Google Vision api is an advanced AI that can identify a lot things in images. It can detect faces and read text in images. It can even recognise celebrities. Google Vision can also group images in different categories. Combined with WPSolr, This can significantly improve search performance on your website as now both text and images are used by WPSolr.

Create a GCP project with Google Vision API authorization

Image Screenshot-2021-01-18-at-14.19.50-1024x406.png of Google Vision

To get started with Google Vision API you have to first connect to the Google Cloud Dashboard.

Image Screenshot-2021-01-18-at-14.20.17-1024x668.png of Google Vision

Search for “api dashboard” and select “Dashboard (APIs & Services)”.

 

Image Screenshot-2021-01-18-at-14.43.23-1024x409.png of Google Vision

Then click on “Enable APIs and Services”.

 

Image Screenshot-2021-01-18-at-14.43.47-1024x205.png of Google Vision

Search for “vision” in the new window, then select “Cloud Vision API”.

Image Screenshot-2021-01-18-at-14.43.58-1024x386.png of Google Vision

Click on “Enable”.

 

Image Screenshot-2021-01-18-at-14.48.50-1024x193.png of Google Vision

Then select “Credentials”.

Image Screenshot-2021-01-18-at-14.54.18-1024x169.png of Google Vision

Click on “Create Credentials” then choose “Service account”.

 

 

Image Screenshot-2021-01-18-at-14.57.56-1024x397.png of Google Vision

Fill in the Service account information.

Image Screenshot-2021-01-18-at-14.59.28-1024x547.png of Google Vision

You can select a role for your service account but if you’re not sure what you want exactly just leave the default settings.

Image Screenshot-2021-01-18-at-14.59.43-1024x586.png of Google Vision

You can just click on “Done” here as well.

Image Screenshot-2021-01-18-at-15.15.24-1024x324.png of Google Vision

Edit the Service account.

Image Screenshot-2021-01-18-at-15.15.57-1024x408.png of Google Vision

Click on “Add key” then select the JSON Key type.

The key is then saved on your computer.

Image Screenshot-2021-01-18-at-15.17.06-1-1024x215.png of Google Vision

You can open the key in your favourite source code editor or IDE.

 

Create an index

Image Screenshot-2021-01-19-at-11.50.55-1024x371.png of Google Vision

activate the WPSOLR plugin then enter the licence. You can now create an index.

Go to “Connect your indexes” and choose your preferred option. I am going to create a test index.

Image Screenshot-2021-01-19-at-11.51.05-1024x406.png of Google Vision

Then create a free test index.

 

 

Activate the WPSOLR Google Vision API extension

 

Image Screenshot-2021-01-19-at-11.52.05.png of Google Vision

To activate the extension go in “Activate extensions”.

 

select “Text, Image, Video AI”.

Image Screenshot-2021-01-19-at-11.51.56-1024x559.png of Google Vision

Click on “Activate the AI extension” checkbox and choose Save Options.

Configure the Google Vision API

Click on “Add an AI” step from the above image.

Image Screenshot-2021-01-19-at-12.03.27-1-1024x691.png of Google Vision

Image Screenshot-2021-01-19-at-12.03.35-1024x634.png of Google Vision

Image Screenshot-2021-01-19-at-12.03.42-1024x452.png of Google Vision

Then fill in the relevant information. Be sure to click on “this ai_api will pre-process indexed documents”. You can check the options you want below JSON key like extracting text from images for example. if you have problems with your search later on you may need to to change the confidence level. Typing 0(zero) may solve these issues.

Configure the WPSOLR search

Image Screenshot-2021-01-19-at-12.04.16-1024x435.png of Google Vision

Click on “Define your search with ‘your_index_name'”, and click on The “Search” checkbox.

Configure the Google Vision fields to index

Image Screenshot-2021-01-19-at-12.04.59-1024x494.png of Google Vision

Click on “Data” in the sidebar and select the data which you want to index.

Image Screenshot-2021-01-19-at-12.10.13-1024x130.png of Google Vision

Image Screenshot-2021-01-19-at-12.10.18-1024x142.png of Google Vision

Select the types of content you want to index. Google Vision only accepts jpeg, jpg, png, gif, bmp, webp,  raw, ico, pdf and tiff images.

Image Screenshot-2021-01-19-at-12.05.15-1024x518.png of Google Vision

select the fields that you prefer. You can leave default fields if you don’t know what to choose.

Configure the Google Vision fields to use as filters

Image Screenshot-2021-01-19-at-12.05.52-1024x462.png of Google Vision

Select the fields you would want to use as filters.

 

Send Data to index

Image Screenshot-2021-01-19-at-12.08.10-1024x520.png of Google Vision

Click on “Index selected post types in index ‘Test index from Elastic Cloud'”.

Add WPSOLR facets widget to your search sidebar

 

Image Screenshot-2021-01-19-at-12.07.42-1024x709.png of Google Vision

 

Create a post with some interesting photos to extractImage Screenshot-2021-01-19-at-16.54.56-1024x589.png of Google Vision

Image Screenshot-2021-01-19-at-16.55.07-1024x589.png of Google Vision

 

 

Make a search and use extracted fields as filters

 

Image Screenshot-2021-01-20-at-16.55.10-826x1024.png of Google Vision

Was this helpful?

Yes  No
Related Articles
  • Hybrid search
  • Question Answering
  • Cohere
  • OpenAI
  • HuggingFace
  • CLIP

Didn't find your answer? Contact Us

Previously
AI Image and OCR APIs add-on
Up Next
Amazon Rekognition
Expand All Collapse All
  • What is it WPSOLR ?
    • The standard WordPress SQL search
    • The WPSOLR search with Elasticsearch, Apache Solr, or Algolia
  • Your configuration journey, step by step
    • Install Apache Solr
    • Hosted Apache Solr and SolrCloud Services
    • Install Elasticsearch
    • Elasticsearch Hosting
    • Configure your indexes
      • Create a Google Retail search index
      • Create a Weaviate index
        • Transformers
        • CLIP
        • HuggingFace
        • OpenAI
        • Cohere
        • Question Answering
        • Hybrid search
      • Generate a test Apache Solr index
      • Generate a test Elasticsearch index
      • Create an Apache Solr index
      • Create a SearchStax SolrCloud index
      • Create an Elastic Elasticsearch index
      • Create an Amazon AWS OpenSearch index
      • Create an Algolia index
      • Create an Elasticsearch index
      • Create an Opensolr Solr index
      • Create a Qbox Elasticsearch index
      • Create an ElasticPress Elasticsearch index
      • Create an Aiven Elasticsearch or OpenSearch index
      • Create a Bonsai Elasticsearch index
      • Create an Amazon AWS Elasticsearch index
      • Create an ObjectRocket Elasticsearch index
      • Create a Cloudways Elasticsearch index
      • Create an Alibaba Cloud Elasticsearch index
      • Create a Compose Elasticsearch index
      • Connect to an Apache Solr index
      • Connect to an Elasticsearch index
    • Add-ons
      • bbPress add-on
      • YITH WooCommerce Ajax Search add-on
      • SEO add-ons
        • Yoast SEO add-on
        • All in One SEO add-on
      • Listable add-on
      • ACF add-on
      • Advanced Scoring add-on
      • Cron Scheduling add-on
      • Theme add-on
        • Filters layouts
          • Radiobox & Checkbox Layout
          • Numeric Range Layout
          • Colour Picker Layout
          • Range Slider Layout
        • Add Ajax to the current Theme
        • Collapse taxonomy hierarchies
        • Custom Facets CSS
      • WPML add-on
      • Premium add-on
        • Manage more than one Elasticsearch or Solr index
      • PDF Embedder add-on
      • Geolocation add-on
      • AI Natural Language APIs add-on
        • Amazon Comprehend
        • Google Natural Language
        • Aylien Text Analysis
        • MeaningCloud
        • Qwam Text Analytics
      • Toolset Types add-on
      • AI Image and OCR APIs add-on
        • Google Vision
        • Amazon Rekognition
      • Embed Any Document add-on
      • MyListing add-on
      • Polylang add-on
      • WooCommerce add-on
      • Cross-domain search add-on
      • Directory+ add-on
      • Toolset Views add-on
      • Listify add-on
      • Jobify add-on
      • Query Monitor add-on
  • Quick start
Login
Support
Privacy policy
  • Terms and Conditions
  • © 2020 wpsolr.com. All Rights Reserved.
Youtube
Roadmap