Outputs come in three variants:
The difference between operators that always return a list and those that sometimes return a list is rather just conceptual. The advantage lies mainly in the convenience of access for the common case of working with single values.
img = ha.read_image('pcb') width, height = ha.get_image_size_s(img) assert width == 1109 assert height == 871 width, height = ha.get_image_size(img) assert width == [1109] assert height == [871] img_seq = ha.concat_obj(img, ha.read_image('fuse')) width, height = ha.get_image_size(img_seq) assert width == [1109, 768] assert height == [871, 576]
Asking for the size of a single image, and getting a list with a single element is not particularly useful. _s versions express the expectation that there should always be exactly one answer, neither zero nor many, explicitly and conveniently.
For information about which operators have such versions, see the HALCON operator reference.