-
Notifications
You must be signed in to change notification settings - Fork 683
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
feat(traffic_light_multi_camera_fusion): take confidence into consideration #6267
Conversation
Signed-off-by: tzhong518 <sworgun@gmail.com>
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.
Thank you for the PR.
I've commented on a minor matter, but as abstracted, it is LGTM.
Signed-off-by: tzhong518 <sworgun@gmail.com>
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
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6267 +/- ##
=======================================
Coverage 14.58% 14.58%
=======================================
Files 1868 1868
Lines 127493 127492 -1
Branches 37317 37317
=======================================
Hits 18600 18600
+ Misses 87974 87973 -1
Partials 20919 20919
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ration (autowarefoundation#6267) * fix: highest confidence Signed-off-by: tzhong518 <sworgun@gmail.com> * fix: use the confidence of the first element Signed-off-by: tzhong518 <sworgun@gmail.com> --------- Signed-off-by: tzhong518 <sworgun@gmail.com>
…ration (autowarefoundation#6267) * fix: highest confidence Signed-off-by: tzhong518 <sworgun@gmail.com> * fix: use the confidence of the first element Signed-off-by: tzhong518 <sworgun@gmail.com> --------- Signed-off-by: tzhong518 <sworgun@gmail.com>
…sion feat(traffic_light_multi_camera_fusion): take confidence into consideration(autowarefoundation#6267)
…ration (#6267) * fix: highest confidence Signed-off-by: tzhong518 <sworgun@gmail.com> * fix: use the confidence of the first element Signed-off-by: tzhong518 <sworgun@gmail.com> --------- Signed-off-by: tzhong518 <sworgun@gmail.com> Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
…ration (autowarefoundation#6267) * fix: highest confidence Signed-off-by: tzhong518 <sworgun@gmail.com> * fix: use the confidence of the first element Signed-off-by: tzhong518 <sworgun@gmail.com> --------- Signed-off-by: tzhong518 <sworgun@gmail.com>
…ration (autowarefoundation#6267) * fix: highest confidence Signed-off-by: tzhong518 <sworgun@gmail.com> * fix: use the confidence of the first element Signed-off-by: tzhong518 <sworgun@gmail.com> --------- Signed-off-by: tzhong518 <sworgun@gmail.com>
Description
The purpose of this PR is to avoid mistrial resulted from low-confidence misdetection.
![image](https://private-user-images.githubusercontent.com/55872497/301359640-4128a9fb-00a9-449f-b2ed-0fbf93dc7d7f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTEzOTcsIm5iZiI6MTczOTM1MTA5NywicGF0aCI6Ii81NTg3MjQ5Ny8zMDEzNTk2NDAtNDEyOGE5ZmItMDBhOS00NDlmLWIyZWQtMGZiZjkzZGM3ZDdmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MDQ1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5OGE5MWVlOTI3NDYzYjgwZjBlYTNjYTAwMTU4M2JiZmRjODQ5Y2RhMGUwMGJiYjhmZjhkZTUyNjJjMzYxNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xEyVHLZDusvYAYhAM3s-N5CWYLzjLeDpiWGVf0EBbEs)
![image](https://private-user-images.githubusercontent.com/55872497/301360235-cbc16fb5-40b1-4444-83a0-f4cb0882caec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTEzOTcsIm5iZiI6MTczOTM1MTA5NywicGF0aCI6Ii81NTg3MjQ5Ny8zMDEzNjAyMzUtY2JjMTZmYjUtNDBiMS00NDQ0LTgzYTAtZjRjYjA4ODJjYWVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MDQ1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkMmIzOGFkYmMyM2Q3YzIwZjkwMTEzYmJhYTJjZjVjOWE5ZjhmYjI4ZmRlMDI4ODYyMjA2MmMwMzZiMDMzYmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ojLRUNpMWqfq5kuKTxDLhnf18qn2o6S56t5kzjOo16o)
Before, the multi camera fusion is based only on the size and truncation state of the rois. As a consequence, if the misdetected roi is not truncated and has the biggest area among the group, the fusion result could be misled to green as below.
Trusting the results with the highest confidence instead of area could avoid such problem. And it also seems reliable in other situations as far as we observed.
left: detection result
right: fusion result
Related links
Tests performed
Notes for reviewers
Interface changes
Effects on system behavior
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.