Skip to content

Fix: Improve YOLO view function and SMS handling (#123)#4

Open
se7en-devOps wants to merge 1 commit into
ARYANK-08:mainfrom
se7en-devOps:fix-typo-or-bug
Open

Fix: Improve YOLO view function and SMS handling (#123)#4
se7en-devOps wants to merge 1 commit into
ARYANK-08:mainfrom
se7en-devOps:fix-typo-or-bug

Conversation

@se7en-devOps

Copy link
Copy Markdown

Description
This PR updates bitnbuild/yolo/views.py to improve stability and maintainability.

Changes made:

  1. Corrected typographical and formatting errors.
  2. Refactored object detection loop by adding a frame capture check.
  3. Moved YOLO model initialization outside the function for better efficiency.
    4.Fixed undefined variable issue in the SMS function (added print statement).

Why this is needed:

Prevents runtime errors if frame capture fails.

Reduces redundant YOLO model initialization overhead.

Improves code readability and reliability.

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.

1 participant