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

Catch case where detected object has a height of 0 #7425

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

NickM-27
Copy link
Sponsor Collaborator

@NickM-27 NickM-27 commented Aug 8, 2023

Saw an occasional crash on one of my cameras where the object was detected with a height of 0 leading to a division by zero exception. I think we can treat the ratio the same as if the width is the ratio in that case.

@netlify
Copy link

netlify bot commented Aug 8, 2023

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit c200d7c
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/64d2d3ce71362a00086a101a
😎 Deploy Preview https://deploy-preview-7425--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kirsch33
Copy link
Contributor

kirsch33 commented Aug 9, 2023

just curious why you wouldnt want to discard the detection entirely if it’s possible to get a zero height from the detector?

@NickM-27
Copy link
Sponsor Collaborator Author

NickM-27 commented Aug 9, 2023

just curious why you wouldnt want to discard the detection entirely if it’s possible to get a zero height from the detector?

that's a larger change that I don't know the full ramifications of. This is a simple change just to ensure we don't fail here in the odd case that it happens

@NickM-27
Copy link
Sponsor Collaborator Author

NickM-27 commented Aug 9, 2023

failed check looks like it has nothing to do with my change

@blakeblackshear blakeblackshear merged commit 3921a7f into dev Aug 10, 2023
10 of 11 checks passed
@NickM-27 NickM-27 deleted the fix-height-bug branch September 4, 2023 12:40
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.

None yet

3 participants