r/computervision • • Mar 31 '26

Showcase Tracking a dancing plastic bag with object detection - the American Beauty stress test

To stress-test our model we pointed it at this classic scene. The "American Beauty" bbox style was just for fun. Had to match the vibe.

569 Upvotes

46 comments sorted by

111

u/italian-sausage-nerd Mar 31 '26

thats... not an edge case at all
- clearly visible at all time, no occlusion
- high framerate
- only one object in view

the most braindead naive centroid tracker would be able to catch this.

11

u/k4meamea Mar 31 '26

Wow. Noted, I stand corrected. Appreciate you taking the time :)

15

u/thehealer1010 Mar 31 '26

not transparent either, object big enough to reliably tracked, not too big, not too small.

9

u/FullstackSensei Mar 31 '26

It's not impressive without the Thomas Newman soundtrack

3

u/Errornotfound_404 Apr 01 '26

brings tears to my eyes

1

u/k4meamea Apr 01 '26

then you should definitely check the SAM version with audio :)

2

u/ChanceInjury558 Apr 01 '26

Please don't misdirect for traction , clearly you have trained model on this , only people who have trained many models know where 0.99 confidence appears.

1

u/k4meamea Apr 01 '26

The beauty of this is that I haven't.

76

u/tdgros Mar 31 '26

the most beautiful thing I've ever seen

19

u/bostaf Mar 31 '26

This was an edge case when I got my masters 10 years ago. Lot has happened since.

7

u/HaloSunX Mar 31 '26

Nice Work! What model did you use - is it Yolo26?

0

u/[deleted] Mar 31 '26

[deleted]

1

u/Striking-Warning9533 Mar 31 '26

so what is it

5

u/k4meamea Mar 31 '26

RCNN+ConvNeXt

1

u/eganchiyu Mar 31 '26

so what is it

11

u/Popular_Tomorrow_204 Mar 31 '26

0.99 plasticbag

0.01 weapon of mass destruction

2

u/SharonSwetchel Mar 31 '26

why I’ve watched this video over and over again for more than 5min…

4

u/k4meamea Mar 31 '26

The scene is captivating on different levels, and we added another layer.

4

u/ban3naf1sh Mar 31 '26

Do you ever feel like a plastic bag drifting through the wind wanting to start again. Theatrics aside. Damn.

1

u/Life-Chard6717 Mar 31 '26

Which model did you choose?

1

u/k4meamea Apr 01 '26

RCNN model with custom dataset

1

u/dromance Mar 31 '26

howd you do this?

1

u/k4meamea Apr 01 '26

Grab a pretrained model, a few line of coɓde and you can easily achieve objects bbox-based. Getting the accuracy demostrated here is more time consuming.

1

u/dromance Apr 02 '26

thanks! i want to implement this in my chicken coup, primarily to identify if animal != chicken, do some function (assuming it's a predator).

If you dont mind me asking, are there any models trained on that?

1

u/ThatCrankyGuy Mar 31 '26

mofo dropping to 33% confidence. would be nice to introduce many floating shopping bags and track them as they interleave

1

u/k4meamea Mar 31 '26

yeah that was my initial footage. but then I remembered this scene from American Beauty and the rest is history.

1

u/tino-latino Apr 01 '26

detection bbox is quite accurate, nice. Is this real time?

1

u/k4meamea Apr 01 '26

The model is to heavy for RT. But achieving RT shouldn't be a problem for a RT-DETR version

1

u/Easy_Advice_2332 Apr 21 '26

Are you using ORB algorithm for feature matching?

1

u/k4meamea Apr 22 '26

ORB is a good way too. I just used object detection.

3

u/tenasan Apr 01 '26

Do you ever feel like a plastic bag?

1

u/Aegim Apr 01 '26

Drifting through the wind, wanting to start again?

1

u/NaNsoul Apr 01 '26

Try it with this edge case: Tracking a Mimic Octopus as it moves across a coral reef. It’s not just deforming; it’s changing its color, texture, and pattern in real-time to match the environment

1

u/pas_possible Apr 01 '26

In the wise words of Katy Perry: I feel like a plastic bag, drifting through the wind...

0

u/Antique-Wonk Mar 31 '26

Did you use a rolling classification and confidence average across multiple frames?

2

u/k4meamea Apr 01 '26

I didnt even know about this. Ill look into ir. Its just a object detection model with 200+ classes to detect. I instruct it to draw bbox on the plastic bag

1

u/Antique-Wonk Apr 01 '26

That's a great result. Sometimes with objects of high morphology it can help to run a rolling average to avoid bouncing into temporary or transient misclassifications which can be problematic in some applications. Good example would be in self driving cars. Plastic bag, plastic bag, plastic bag, dog, plastic bag. Minimises Phantom braking.

0

u/Polite_Jello_377 Mar 31 '26

Very impressive

0

u/wangmerc Mar 31 '26

what does that numbers actually means?

6

u/[deleted] Mar 31 '26

[removed] — view removed comment

0

u/k4meamea Mar 31 '26

It's a stress test for my my use case and model with this backbone and specific configurations. Others have already commented on how easy this task is :)