-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improvement/img detection extended #130
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #130 +/- ##
==========================================
- Coverage 33.40% 32.84% -0.56%
==========================================
Files 68 68
Lines 3739 3711 -28
==========================================
- Hits 1249 1219 -30
- Misses 2490 2492 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, missing getter and setter for label_name. And let's also update README for messages with the new definition of ImgDetectionExtended
|
…/luxonis/depthai-nodes into improvement/ImgDetectionExtended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I think user expirience now is worse with What I would like if we keep RotatedRect is that we add properties to |
I see your point @kkeroo but there are two things to consider:
I do however still agree on having utils functions for converting to/from "depthai objects" (like |
Valid point.
Depends on the visualization. I see you used
If we just add method to the ImgDetectionExtended we can have it shorter and more intuitive. And inside the method we explicitly
user wil then just call
and the same for the rect.getOuterRect(). This just adds the option for getting right bbox coordinates in one line and we keep |
Okay I agree with this style now. |
This PR adapts ImgDetectionsExtended to use
dai.RotatedRect
object for storing information about the (rotated) bounding box. This simplifies porting to depthai in the future and reduces code duplication. Examples were also updated to take advantage of this new definition.Some smaller updates were also made due to the use of dai v3 alpha6.