Training

This widget allows you to perform a training in the MERLIC Frontend. Some MERLIC tools require a training of an individual data set before the actual image processing can be performed, for example, the tool "Check Presence with Matching". These tools provide a training mode with a training area on the left of the Tool Board. The "Training" widget allows you to train the respective training data set directly in the MERLIC Frontend, for example, when the application has already been integrated into the manufacturing process. It can be connected to any tool with a training mode that is used in your MERLIC Vision App.

The training is implemented individually for each tool with a training mode. When using the "Training" widget in the MERLIC Frontend, you can activate the training mode by sliding the handle of the "Training Switch". The widget will then offer you the same training functionality as in the MERLIC Creator. Thus, the appearance and usage of the training depends on the connected tool. For the visualization of the respective training images, an "Image Display" widget is required. It must be connected in the properties of the "Training" widget.

To get more information about the training mode and about which tools support a training, see the topic Working with the Training Mode. To get more information about the training mode of a specific tool, see the corresponding reference documentation of the tool.

Style

X, Y:

Adjust the position of the widget by typing the desired coordinate values of the upper left corner into the input field.

Z-Order:

Adjust the z-order of the widget by typing the desired value into the input field. This defines which widget is displayed on top if several widgets are positioned at the same place, for example, if widget "A" has "Z-Order" "0" and widget "B" has "Z-Order" "1", widget "B" will be displayed on top of widget "A".

Width:

Adjust the width of the widget. The width is defined in pixels and set to 420 by default. To change the value, type the new width into the input field.It must be at least 320 and not be bigger than 2147483647.

Height:

Adjust the height of the widget. The height is defined in pixels and set to 600 by default. To change the value, type the new height into the input field. The value must be at least 440. It must not be bigger than 2147483647.

Background Color On:

Adjust the background color of the widget for the case that the training is activated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

This property does not set the background color for the buttons in the widget. To change the style of the buttons, use the properties in the category "Button".

Background Color Off:

Adjust the background color of the widget for the case that training is deactivated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

This property does not set the background color for the buttons in the widget. To change the style of the buttons, use the properties in the category "Button".

Mode Color Highlight:

Adjust the background color of the currently selected image panel. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Font Size:

Adjust the size of the displayed text. Select the font size from the combo box or type the value directly into the input field.

This property does not set the font size of the texts that are defined for the buttons in the widget. To change the style of the buttons, use the properties in the category "Button".

Font Color On:

Adjust the color of the displayed text for the case that the training is activated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

This property does not set the font color for the texts that are defined for the buttons in the widget. To change the style of the buttons, use the properties in the category "Button".

Font Color Off:

Adjust the color of the displayed text for the case that the training is deactivated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

This property does not set the font color for the texts that are defined for the buttons in the widget. To change the style of the buttons, use the properties in the category "Button".

Font Family:

Adjust the font family of the displayed text in the drop-down menu of this property.

This property does not set the font family for the texts that are defined for the buttons in the widget. To change the style of the buttons, use the properties in the category "Button".

Caption:

Adjust the text that is displayed as caption for the widget by typing the text directly into the input field.

Caption "Training":

Adjust the text that is displayed as caption for the panel with the training images by typing the text directly into the input field.

Caption "Processing":

Adjust the text that is displayed as caption for the panel with the processing image by typing the text directly into the input field.

Caption "Apply Training":

Adjust the text that is displayed on the button for starting the training by typing the text directly into the input field. The respective button is only displayed if the training of the connected tool is not performed automatically but has to be started manually by the user. For example, the training of the tool "Check Presence with Gray Features" must be started manually and therefore the respective button will be visible if this tool is connected.

Data

Connected Tool:

Connect to a tool from your MERLIC Vision App by selecting the desired tool from the drop-down menu. You can only select tools that are used in your MERLIC Vision App and that provide a training mode. At the property "Connected Image Display" you may then select the "Image Display" widget in which the training images will be displayed.

Connected Image Display:

Select the "Image Display" widget in which the training image will be displayed. The list shows only "Image Display" widgets that have already been inserted to the Frontend design. If no "Image Display" widget has been added to your design yet, add an "Image Display" widget first and then connect the "Training" widget to it.

Button

The following properties can be set for the buttons that are displayed in the widget, for example, for the button to add a training image or the button that can be used to start the training if the training of the connected MERLIC tool must be started manually, for example, for the tool "Check Presence with Gray Features".

Background Color On:

Adjust the background color of the buttons for the case that the training is activated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Background Color Off:

Adjust the background color of the buttons for the case that the training is deactivated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Border Color On:

Adjust the border color of the buttons for the case that the training is activated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Border Color Off:

Adjust the border color of the buttons for the case that the training is deactivated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Font Size:

Adjust the size of the texts that are displayed in the buttons. Select the font size from the combo box or type the value directly into the input field.

Font Color On:

Adjust the color of the texts that are displayed in the buttons for the case that the training is activated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Font Color Off:

Adjust the color of the texts that are displayed in the buttons for the case that the training is deactivated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Font Family:

Adjust the font family of the texts that are displayed in the buttons in the drop-down menu of this property.

Parameter Names

The following properties can be set for parameter names that are displayed in the widget if the training mode of the connected MERLIC tool provides specific training parameters, for example, for the tool "Check Presence with Gray Features".

Font Size:

Adjust the size of parameter names that might be displayed in the widget. Select the font size from the combo box or type the value directly into the input field.

Font Color On:

Adjust the color of parameter names that might be displayed in the widget for the case the training is activated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Font Color Off:

Adjust the color of parameter names that might be displayed in the widget for the case the training is deactivated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Font Family:

Adjust the font family of parameter names that might be displayed in the widget from the drop-down menu of this property.

Thumbnails

The following properties can be set for the thumbnails that show a preview of the processing images and training images.

Width:

Adjust the width of the thumbnails displayed in the widget panels. The width is defined in pixels and set to 170 by default. To change the value, type the new width into the input field. It must be at least 80 and not be bigger than 2147483647.

Height:

Adjust the height of the thumbnails displayed in the widget panels. The height is defined in pixels and set to 136 by default. To change the value, type the new height into the input field. It must be at least 60 and not be bigger than 2147483647.

Training Switch

The following properties can be set for the switch that is used to activate or deactivate the training.

Background Color On:

Adjust the background color of the switch for the case that the training is activated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Background Color Off:

Adjust the background color of the switch for the case that the training is deactivated. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Handle Color:

Adjust the color of the switch. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Text "On":

Adjust the text that is displayed next to the switch for the case that the training is activated. You can type the text directly into the input field.

Text "Off":

Adjust the text that is displayed next to the switch for the case that the training is deactivated. You can type the text directly into the input field.

Application Example

This widget is used in the following MERLIC Vision App examples:

  • count_frozen_dough_with_training.mvapp