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

Trigger when detection lost #1269

Closed
1 task done
wong-kene opened this issue Jun 7, 2024 · 4 comments
Closed
1 task done

Trigger when detection lost #1269

wong-kene opened this issue Jun 7, 2024 · 4 comments
Labels
question Further information is requested

Comments

@wong-kene
Copy link

Search before asking

  • I have searched the Supervision issues and found no similar feature requests.

Question

I use supervision for visitor counting inside specific area.
The whole system was running well except for one area only (let's call it area X).
The problem is the distance between camera and area X is too far, So that the person is so smaill. Engine still can detect the people but sometimes detection is lost for several second although the person is not move. and suddenly it be detected again

My question is.
Is any trigger when the people/object is :

  1. lost from detection
  2. move out from area

if both trigger are exist, i will make a different treatment like this :

  1. if object lost from detection, i will not decrease the total of people
  2. if the person move out from are, i will descrease the total of people

Or any solution to cover my problem?

thanks...

Additional

No response

@wong-kene wong-kene added the question Further information is requested label Jun 7, 2024
@SkalskiP
Copy link
Collaborator

SkalskiP commented Jun 7, 2024

Hi @wong-kene 👋🏻 At present, there is no distinction between the situation when an object crosses the zone boundaries and simply disappears. We plan to add cross_in and cross_our counts for the polygon zone.

@wong-kene
Copy link
Author

thanks for your response @SkalskiP
i have tried to use Dataset for 'small people' over internet. but nothing matched with requirement.
are you or anyone have recommendation dataset for 'small people'?

@SkalskiP
Copy link
Collaborator

@wong-kene, I guess the dataset is not the issue; the people are simply too small for the model to detect. As mentioned, you could detect them by increasing the model input resolution, but then your model would become slower.

@LinasKo
Copy link
Collaborator

LinasKo commented Jun 11, 2024

Hi @wong-kene 👋

The primary solution here is to increase the quality of small object detection.
For that reason, I'll close this tracker feature request.


However, I'd still like to help.

Here's some more info about small object detection with InferenceSlicer: https://supervision.roboflow.com/0.21.0/how_to/detect_small_objects/

If that runs too slow, there's a hybrid solution you can try:

  1. Crop an image in the frame with crop_image
  2. Run a separate model just on that area.

While the tracker IDs won't be compatible, you'll still know whether someone entered / left the problematic zone.

Let me know if that solves your issue!

@LinasKo LinasKo closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants