Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass on task zoom value from API #666

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

andchiind
Copy link
Contributor

No description provided.

@andchiind andchiind added the improvement Improvement to existing functionality label Dec 6, 2024
@andchiind andchiind self-assigned this Dec 6, 2024
@andchiind andchiind force-pushed the custom-zoom branch 2 times, most recently from 2e98402 to baae77f Compare December 6, 2024 13:51
Comment on lines 33 to 35
class ZoomDescription:
width: float
height: float
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the values are height and width of inspection object it might be more descriptive to rename to something like ObjectSize/InspectionTargetSize?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree with @Eddasol, InspectionTargetSize or InspectionTargetProperties

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I compromised and made it clear that the width and height refer to the width and height of the object, while keeping it in a "zoom" context, since it is not the general width and height of the object, but the width and height from the point of view of the robot when taking a photo. This could otherwise create some confusion imo. We for instance do not provide a depth, so it is not a complete description of the inspection target.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But if we end up adding more metadata for the inspection action then we can also generalise this class.

Copy link
Contributor Author

@andchiind andchiind Dec 10, 2024

Choose a reason for hiding this comment

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

We are not also necessarily describing the objects' width and height but just the width and height of the target in the image. For a fence for instance, we are not stating that the provided values are the width and height of the fence. It is a value specific to zoom.

Copy link
Contributor

@mrica-equinor mrica-equinor left a comment

Choose a reason for hiding this comment

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

LGTM :)

@andchiind andchiind merged commit 961f8dc into equinor:main Dec 10, 2024
6 checks passed
@andchiind andchiind deleted the custom-zoom branch December 10, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants