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: Business logic with ROI entering/leaving #14

Merged
merged 5 commits into from
Oct 25, 2024

Conversation

antoniomtz
Copy link
Contributor

@antoniomtz antoniomtz commented Oct 22, 2024

PR Checklist

  • 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?

  • Added python extension to apply logic for the gvametadata to change roi_type to objects within the gvaattachroi (ROI).
  • Published metadata to MQTT
  • Added python business application to subscribe to MQTT and apply business logic for entering and leaving a ROI

Steps:

  1. make build
  2. make download-models (if you haven't done it before)
  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. Find the loss prevention container id and see the logs: docker logs -f
Object bottle (ID: 4) entered the BASKET ROI.
 Current objects in ROI: {4: 'bottle'}

Issue this PR will close

close: #issue_number

Anything the reviewer should know when reviewing this PR?

Test Instructions if applicable

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>
Signed-off-by: Antonio Martinez <jose.antonio.martinez.torres@intel.com>
Signed-off-by: Antonio Martinez <jose.antonio.martinez.torres@intel.com>
Signed-off-by: Antonio Martinez <jose.antonio.martinez.torres@intel.com>
Signed-off-by: Antonio Martinez <jose.antonio.martinez.torres@intel.com>
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.

works after new changes with clean install

@antoniomtz antoniomtz merged commit 021c329 into intel-retail:main Oct 25, 2024
6 checks passed
@antoniomtz antoniomtz deleted the business-logic branch October 25, 2024 20:59
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.

3 participants