Thursday, September 29, 2022

Using the Google Vision API to analyze images in Delphi

With ImageEn 11.4.0 you can now use the Google Vision API to recognize objects, text, handwriting, faces, famous landmarks and logos in images.


Google Vision API Features

Object localization

Detect objects in an image, and returns their label and bounding box


Face detection

Locate faces with bounding polygons, and identifies specific facial "landmarks" such as eyes, ears, nose, mouth, etc. along with their corresponding confidence values.
Also, returns likelihood ratings for emotion (joy, sorrow, anger, surprise) and general image properties (underexposed, blurred, headwear present).

Landmark detection

Detect popular natural and human-made structures within an image, returning the name, GPS coordinates and bounding box for the landmark.



Logo detection

Recognize popular product logos within an image, returning their name and bounding box.


Text detection

Recognize text and handwriting within an image (OCR), returning the text and location.
Returns text in all Google-supported languages.



Web Entities and Pages

Detect references and related web information for an image, including:
- Best guess label: A best guess as to the topic of the requested image inferred from similar images on the Internet
- Inferred entities (labels/descriptions) from similar images on the Web
- Full matching images: A list of URLs for fully matching images of any size on the Internet
- Partial matching images: A list of URLs for images that share key-point features, such as a cropped version of the original image
- Pages with matching images: A list of Webpages with an image that matches one of the above rules
- Visually similar images: A list of URLs for images that share some features with the original image


SafeSearch: Explicit content detection

Detects explicit content such as adult content or violent content within an image.
Provides likelihood ratings for the following explicit content categories: adult, spoof, medical, violence, and racy.


For more information on ImageEn, visit:


No comments: