Skip to content

Conversation

@CSSFrancis
Copy link
Member

This PR adds the additional attributes:

attribute.output_binning_x: int = 1,
attribute.output_binning_y: int = 1,
attribute.output_binning_method: int = 1,  # BinningMethod.AVERAGE

It also increments the version number to support the beta version of 2.7.5.

Comment on lines +2156 to +2163
def get_image(
self,
frame_type: Union[FrameType, str] = FrameType.SUMTOTAL,
pixel_format: Union[PixelFormat, str] = PixelFormat.AUTO,
attributes: Union[Attributes, str] = "auto",
file_name: str = None,
text_size: int = 0,
):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CoolFanyu I did change this slightly to allow any attribute to be passed to the get_image function.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that should be better. I noticed some old scripts used this function. In most cases, it just calls GetImage(). But it also added some other parameters in some scripts, and I noticed they are also not compatible with SDK 5.2. I guess we should just use the new one and change the old script if it passes parameters.

@CSSFrancis CSSFrancis merged commit 4fb4cb0 into main Aug 13, 2025
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants