General Data Comparison

The operator’s "Comparison Attribute" parameter is dynamically generated based on the data type. Therefore, you first need to double-click the operator to instantiate it, so that the data type can be recognized and attribute options matching that type can be provided.

Function Description

This operator is used to perform logical comparison between two input data of the same type. Users can set a judgment condition (such as equal to, greater than, less than, etc.), and the operator will output a boolean result based on this condition, thereby achieving logical control of the algorithm flow.

Usage Scenarios

  • Data Comparison: Compare whether the attribute values of two data are equal, for example, comparing the number of objects measured twice.

  • Flow Control: Create logical branches in the algorithm flow, for example, comparing the quantity of two input data, with the larger quantity entering flow A and the smaller quantity entering flow B.

Input and Output

Input Items

  • Data to Compare 1: The first input data, with data type determined by the type selected during instantiation.

  • Data to Compare 2: The second input data, with the same data type as the first data.

Output Items

  • True Output: When the judgment condition is met, this port outputs True, otherwise outputs False.

  • False Output: When the judgment condition is not met, this port outputs True, otherwise outputs False.

Parameter Description

Comparison Condition

Parameter Description

Select the logical judgment condition used to compare data one and data two.

Parameter Adjustment Description

Select the comparison relationship as needed.

Parameter Range

>, ≥, =, <, ≤

Comparison Attribute

Parameter Description

Displays different parameter names based on the input data type, used to select which attribute of the input data to compare with the "Judgment Threshold".

Parameter Adjustment Description

Available attributes depend on the data type:

  • For list, dictionary, string and other types, you can usually choose list length and current value.

  • For image types, in addition to list length and current value, you can also choose to compare internal attributes, such as image area, image channel count, image height, image width, etc.

  • For detection result and other types, in addition to list length and current value, you can choose to compare uuid identifier, confidence, category name, angle, etc.

  • For point cloud type data, in addition to list length and current value, you can choose point cloud point count, point cloud data type

  • For numeric types, such as integers, floating-point numbers, matrices, etc., only the current value can be compared.