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

Fix/enable service state and class id enumeration #73

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

liamcarlos
Copy link

Hi there,

I've been using this package for the object detection portion of my project and it has been a huge help, so I just want to thank you first for putting this out here!

The first change I made to enable callback is because I found that if I tried setting the same state twice (i.e. setting enable to false when it is already false) it freezes, I assume waiting for a response from SetBool which doesn't have a way for dealing with this? I'm not sure, but that change should remedy that circumstance so it would return a response to indicate that enable has not been changed and not freeze activities.

Secondly, the enumeration change I made a while ago, but I believe that that line was not going through the number of detections properly, hence the manual incrementations. I would like to revisit this revision though, because I believe it can be done more intelligently and handle an issue I think it is causing by incrementing previous detections instead of recognizing the original detections? I don't know, but I am interested in learning more about this package and how to use it! Thanks you!

liamcarlos and others added 4 commits January 3, 2025 13:55
@mgonzs13
Copy link
Owner

Hi @liamcarlos, thanks for your work. In fact, I am thinking of removing the enable service and only using the lifecycle services.

On the other hand, I'm not getting the problem with the class_id. This field represents the ID of the detected object inside the model class list. Check this.

@liamcarlos
Copy link
Author

@mgonzs13 Ahh I see I misunderstood the class id variable. I quickly trained a model with one class because I was only looking for one type of object, and I wanted a way to go through the number of detections for that object. Is there a way to do that? Would that be done with tracking? My thinking initially was to label them (incorrectly with an integer in class id i.e. object 1, 2, 3..) and then stop the feed with setting enable to false to prevent loss of detections and addition of new detections. Do you use this package to perform a function similar to this?

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.

2 participants