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

feat: Integrating grafana to display data #21

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

antoniomtz
Copy link
Contributor

PR Checklist

  • [x ] Added label to the Pull Request for easier discoverability and search
  • Commit Message meets guidelines as indicated in the URL https://github.com/intel-retail/loss-prevention/blob/main/CONTRIBUTING.md
  • Every commit is a single defect fix and does not mix feature addition or changes
  • Unit Tests have been added for new changes
  • Updated Documentation as relevant to the changes
  • All commented code has been removed
  • If you've added a dependency, you've ensured license is compatible with repository license and clearly outlined the added dependency.
  • PR change contains code related to security
  • PR introduces changes that breaks compatibility with other modules (If YES, please provide details below)

What are you changing?

Issue this PR will close

close: #issue_number

Anything the reviewer should know when reviewing this PR?

Test Instructions if applicable

  1. make build
  2. make download-models (if you don't have yolov8)
  3. make INPUTSRC=https://github.com/openvinotoolkit/openvino_notebooks/raw/refs/heads/recipes/recipes/automated_self_checkout/data/example.mp4 PIPELINE_SCRIPT=yolov8s_roi.sh run-render-mode
  4. Open URL: http://127.0.0.1:3000/d/ce428u65d0irkf/loss-prevention
  5. See items in basket and bagging area, and Alerts when items leave bagging area.

If the there are associated PRs in other repositories, please link them here (i.e. intel-retail/loss-prevention )

Signed-off-by: Antonio Martinez <jose.antonio.martinez.torres@intel.com>
@antoniomtz antoniomtz added the enhancement New feature or request label Nov 16, 2024
@antoniomtz antoniomtz self-assigned this Nov 16, 2024
Copy link
Contributor

@jim-wang-intel jim-wang-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM- tested and worked from my box

@@ -1,19 +1,32 @@
'''
* Copyright (C) 2024 Intel Corporation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the copyright needed?

Copy link

@NeethuES-intel NeethuES-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to build and start all the containers, but gstreamer is failing with following error -
Is it some version issue ? Am I missing some pip install step ?

(gst-plugin-scanner:24): GStreamer-WARNING **: 21:01:47.480: Failed to load plugin '/opt/intel/dlstreamer/gstreamer/lib/gstreamer-1.0/libgstximagesrc.so': libXtst.so.6: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/opt/intel/dlstreamer/lib/gstreamer-1.0/python/python_object_association.py", line 20, in <module>
    from deep_sort_realtime.deep_sort.tracker import Tracker
ModuleNotFoundError: No module named 'deep_sort_realtime'
Traceback (most recent call last):
  File "/opt/intel/dlstreamer/lib/gstreamer-1.0/python/pytorch_tensor_inference.py", line 16, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'

Copy link

@NeethuES-intel NeethuES-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally worked for me after yolo was downloaded properly. However performance on my i5 is really bad, video doesn't even render, just green screen with bounding boxes
image

Copy link
Contributor

@brian-intel brian-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after copyright is added to loss_prevention.py

Signed-off-by: Antonio Martinez <jose.antonio.martinez.torres@intel.com>
@antoniomtz antoniomtz merged commit cf0248f into intel-retail:main Nov 19, 2024
5 of 7 checks passed
@antoniomtz antoniomtz deleted the grafana-intergration branch November 19, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants