Skip to content

Linezone.trigger returns bool nparray - #482

Merged
SkalskiP merged 3 commits into
roboflow:developfrom
abhishek7kalra:linezonetrigger
Oct 18, 2023
Merged

Linezone.trigger returns bool nparray#482
SkalskiP merged 3 commits into
roboflow:developfrom
abhishek7kalra:linezonetrigger

Conversation

@abhishek7kalra

Copy link
Copy Markdown
Contributor

Description

As requested in the issue #464 , I have made the necessary changes. Now the sv.LineZone.trigger returns a bool nparray which indicates the object's state change (indicating it has crossed the line). The implementation is similar to that of sv.PolygonZone.trigger

Type of change

  • New feature (non-breaking change which adds functionality)

Docs

  • Docs updated? What were the changes:

@CLAassistant

CLAassistant commented Oct 15, 2023

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hello there, thank you for opening an PR ! 馃檹馃徎 The team was notified and they will get back to you asap.

@SkalskiP
SkalskiP self-requested a review October 18, 2023 11:47
@SkalskiP SkalskiP added API:linezone LineZone API enhancement New feature or request hacktoberfest Open for contributions during the annual Hacktoberfest event, aimed at encouraging open-source parti hacktoberfest-accepted Contribute to the notion of open-source this October! labels Oct 18, 2023
@SkalskiP
SkalskiP merged commit 034c2bd into roboflow:develop Oct 18, 2023
@SkalskiP

Copy link
Copy Markdown
Collaborator

Here is a small test confirming everything works as expected.

482-test.mp4

@abhishek7kalra
abhishek7kalra deleted the linezonetrigger branch October 21, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API:linezone LineZone API enhancement New feature or request hacktoberfest Open for contributions during the annual Hacktoberfest event, aimed at encouraging open-source parti hacktoberfest-accepted Contribute to the notion of open-source this October!

Projects

Status: Current Release: Done

Development

Successfully merging this pull request may close these issues.

Make sv.LineZone.trigger return bool np.ndarray informing which detections have crossed the line this frame

3 participants