AI Templates

Introduction to AI Templates

AI Templates use AI models with its creation, training and deployment of machine learning algorithms that emulate logical decision-making based on available data. The AI models that we use are created and trained using the Mirosoft Lobe application. https://www.lobe.ai/ Once the model is 100% trained, the .json and .onnx files can be exported.


Introduction to AI Templates

Login to CMService as Domain Admin and from left navigation menu open ‘AI Templates’. Create New AI Template.

In AI Template you can import the .onnx file in the Module File section, and the .json file in the Description File section. (from the previously trained module from Lobe).


Configure the Camera

Linux Player


There are two ways to use the camera for AI Templates.

Open Linux CMPlayer Configuration file and go to General Settings.

1. Use Web Camera directly with FaceR.

2. Use Rtsp Camera. Run the Rtsp.exe and the URL from the Command Prompt enter in the ‘Capture the URL instead of the local camera’ field, save the changes and Run Diagnostics.


Note: The minimal RAM Memory requirement for AI on Linux player is 6GB.


Windows Player x64


There are two ways to use camera for AI Templates.

Open Windows CMPlayer Configuration file and go to General Settings.

1. Use Web Camera directly.

2. Use Rtsp Camera. Run the Rtsp.exe and the URL from the Command Prompt enter in the ‘Capture the URL instead of the local camera’ field, save the changes and Run Diagnostics.



Note: The AI Templates for windows work only on CMPlayer x64.


Add AI Template condition on media level


Login to CMService as Domain Admin and open Campaigns. Import some media to the campaign.

Right click on media you want to add the condition Playlist Settings > Conditional.

In the modal window click on AI Match and ‘Add new AI condition’ button. New modal window with list of all created AI Templates will be shown. Choose one of the models and click on ‘OK’ button. The AI model will be added with two dropdown fields, first one, for choosing operators: Equal (= ), Less than (<), Greater than (>) and Not equal (<>), and the second one for choosing model.



Choose the condition and click on ‘OK’ button.

In each media that contains condition play, there will be an information icon about the condition.



Note: Each media can have more than one AI condition and the condition can be added on different types of media.


Add AI Template condition on media from Playlist


Create one Playlist and add different types of media. Right click on media you want to add the condition and click on the ‘Conditional’.

The Conditional Play modal window will be shown. Choose the AI Match condition and click on OK button. There will be an information icon near the media name about the condition.



Add AI Template condition on entities level


The AI condition can be used on entities level as Campaigns, Tickers and Commands. Open one of the entities, go to Settings tab and tick the ‘Play only when the condition matches’ option. The modal window for Conditional Play will be opened.



Playback


Once the player starts playing, the camera will turn on. The media/campaign will play only when the conditions match.