Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

https://cloud.google.com/vision/docs/detecting-web

How it works:

Digizuite offers an automation which can be triggered based on your requirements. Often it will be on all new product images being uploaded into the platform. Since this is in our automation, it is completely customized what should trigger so you could do it for certain metadata or workflow stages.

Endpoints

These endpoints are the ones which is used in the automation config further down

Type

Endpoint

Input

Functionality

Output

Google Vision

https://dgz-integration-broker.azurewebsites.net/api/integrations/asset/invoke?clientId={SECRET_CLIENT_ID}&integrationType=GoogleImageSearch&assetId=<assetid>&code={SECRET_CODE}

  • clientId: provided by Digizuite

  • integrationType: GoogleImageSearch

  • code: provided by digizuite

Sends image for web search at google Vision and returns urls.

Returns

See all the definitions here:

https://cloud.google.com/vision/docs/detecting-web

Code Block
   public class GoogleResponse
    {
        public WebDetection webDetection { get; set; }
    }
    
    public class WebDetection
    {
        public List<WebEntity> webEntities { get; set; }
        public List<FullMatchingImage> fullMatchingImages { get; set; }
        public List<PartialMatchingImage> partialMatchingImages { get; set; }
        public List<PagesWithMatchingImage> pagesWithMatchingImages { get; set; }
        public List<VisuallySimilarImage> visuallySimilarImages { get; set; }
        public List<BestGuessLabel> bestGuessLabels { get; set; }
    }
   
   public class BestGuessLabel
    {
        public string label { get; set; }
    }

    public class FullMatchingImage
    {
        public string url { get; set; }
    }

    public class PagesWithMatchingImage
    {
        public string url { get; set; }
        public string pageTitle { get; set; }
        public List<FullMatchingImage> fullMatchingImages { get; set; }
    }

    public class PartialMatchingImage
    {
        public string url { get; set; }
    }

  
    public class VisuallySimilarImage
    {
        public string url { get; set; }
    }

    public class WebEntity
    {
        public string entityId { get; set; }
        public double score { get; set; }
        public string description { get; set; }
    }

Configuration

The following shows a starting point for your integration.

...