Skip to content

Commit

Permalink
Bugfix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
heming-h committed Jun 12, 2024
1 parent 4bee4ad commit 0bdeee4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ RUN pip install --upgrade pip
RUN pip install "poetry==1.7.1"
COPY poetry.lock pyproject.toml /app/

# Docker label
LABEL org.opencontainers.image.source=https://github.com/langrenn-sprint/vision-ai-service
LABEL org.opencontainers.image.description="vision-ai-service"
LABEL org.opencontainers.image.licenses=Apache-2.0

# Project initialization:
RUN poetry config virtualenvs.create false \
&& poetry install --no-dev --no-interaction --no-ansi
Expand Down
5 changes: 3 additions & 2 deletions vision-ai-service/vision_ai_service_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ def detect_crossings_with_ultraltyics(

EventsAdapter().update_global_setting("VIDEO_ANALYTICS_RUNNING", "false")

cv2.destroyAllWindows()
if show_video:
cv2.destroyAllWindows()
cap.release()
return f"Analytics completed. {informasjon}"
return f"Analytics completed {informasjon}."

def get_trigger_line_xyxy_list(self) -> list:
"""Get list of trigger line coordinates."""
Expand Down

0 comments on commit 0bdeee4

Please sign in to comment.