Image analysis
The image analysis feature generates tags relevant to the content of images like people, animals, objects, scenery, or actions.
This feature relies on Azure Cognitive Services, a tool for image recognition. Sitecore DAMTM integrates it to generate asset auto-tags, descriptions and color recognition data (on images and vectors only).
The following workflow represents the image analysis flow in Sitecore DAMTM:
You can find the Image analysis section on the Asset Detail page:
The Vision media processing flow handles the image analysis feature. The flow can be found under Manage > Media processing.
The image analysis feature supports the following file types:
- Images: bmp, bpg, cr, cr2, crw, dib, dng, dpx, erf, gif, jfif, jp2, jpe, jpeg, jpg, jxr, nef, orf, raf, raw, srw, tga, webp
- Vectors: ai, eps, png, psb, psd, svg, tif, tiff
The image analysis feature does not process video assets as they have their own flow: Video AI analysis.
Setting up image analysis
To set up image analysis, you need to:
Only superusers can perform the configuration steps described in this section.
Set up the M.AssetType taxonomy
The image analysis feature is applied only to assets having specific asset types. You can choose which asset types trigger the image analysis feature by configuring the M.AssetType taxonomy. You can select existing asset types or create new ones.
To add a new asset type to the M.AssetType taxonomy:
-
Go to Manage > Taxonomy:
-
Find and select the M.AssetType taxonomy:
-
Click
to add a new M.AssetType taxonomy item:
-
Enter a Label. In this example, the Label is Image Analysis. The Identifier is auto-generated:
-
Click Save.
Enable the Vision service
After identifying the asset types that should trigger image analysis, you need to enable the Vision service on their associated taxonomy items.
To enable the Vision service on an M.AssetType taxonomy item:
-
Go to Manage > Taxonomy.
-
Find and select the M.AssetType taxonomy.
-
Find the taxonomy item you need to configure and click
to edit it:
-
Set Triggers vision to True:
-
Click Save.
Applying image analysis
To apply image analysis to an asset, you need to assign the asset type having Triggers vision enabled to the asset.
You can set up your assets to use this in several ways:
- Apply image analysis to a single asset
- Apply image analysis to several assets using edit in table
- Apply image analysis to several assets using mass edit
Apply image analysis to a single asset
-
Go to the Asset Detail page and click
in the Overview section:
-
In the Type field, click
:
-
Select the asset type with Triggers vision enabled, and click OK.
-
Back in Overview, click Save:
-
After saving, your asset gets analyzed by Azure Cognitive Services. You can see this in the job details, found on the Background processes page:
-
You can see the results in the Image analysis section on the Asset Detail page.
Apply image analysis using edit in table
-
On the Assets page, select your assets and click
. An editable table is displayed
-
Double-click the Type cell of the first asset, select the asset type having Triggers vision enabled, and click OK
-
Drag the green box to fill in the Type cells on the remaining assets.
-
Click Save and close.
-
After saving, your assets get analyzed by Azure Cognitive Services. You can see the results in the Image analysis section on the Asset Detail page.
Apply image analysis using mass edit
-
On the Assets page, select your assets, click
, then select Edit to mass edit your assets
-
On the Assets mass edit page, click
to update the Type field
-
Select the asset type having Triggers vision enabled, and click OK
-
The new asset type is set by default to replace any existing value. Click Apply to save your changes
-
Click Confirm to confirm your changes.
-
After saving, your assets get analyzed by Azure Cognitive Services. You can see the results in the Image analysis section on the Asset Detail page.