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

Excluding blobs / petri dish borders #91

Open
piotrvidal opened this issue Feb 3, 2022 · 2 comments
Open

Excluding blobs / petri dish borders #91

piotrvidal opened this issue Feb 3, 2022 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@piotrvidal
Copy link

piotrvidal commented Feb 3, 2022

Hi :)

Great software. Is there any way to prevent the sides of the petri dish from being identified as blobs? Or to click on them an "exclude" them somehow?

I've tried:

  • increasing threshold (this works but also decreases the detection of the animals on the plate)
  • modifying the video beforehand by adding a circular mask to get rid of the petri dish borders (this also works but it'd be very time consuming when using many plates)
  • using the categorize feature to train a model by telling the network which blobs are animals and which are just borders, but for some reason it keeps showing me plate borders identified as "isopod" in the "category/skip" tile selector

trex_screenshot

EDIT: I'm sure this is a user thing. I'm going over the documentation again and again but I'm unable to find a way out so that's why I decided to drop a message.

@piotrvidal
Copy link
Author

I just realized that I could simply exclude those undesired blobs from the .csv for my data representations. It would still be a cool feature being able to select a specific blob and tell TRex to ignore it.

@mooch443 mooch443 added the documentation Improvements or additions to documentation label Feb 26, 2022
@mooch443 mooch443 self-assigned this Feb 26, 2022
@mooch443
Copy link
Owner

Hey! There is a function that could help you with that. While you're in tracking view (like in your screenshots) simply CTRL/CMD+lef-click any (empty) point in the image. If you chain those clicks, you'll get a (convex) polygon that you can exclude from tracking. Be aware though that convex is currently the constraint here. You will need to add multiple boxes for a round shape!
An alternative that I haven't used in a while is to use -cam_circle_mask during conversion. Let me know if that still works... You'll need to use -crop_window before conversion to crop the video so that it cuts off exactly at the borders. Only works for one petri dish though. If you need the same values multiple times, then you can copy the values from the terminal to -crop_offsets for the next program start.

Good point though. I'll add this to documentation and include a part about this topic there. Thanks!

@mooch443 mooch443 added this to To do in Update documentation via automation Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: To Do
Development

No branches or pull requests

2 participants