Skip to content

[Question]: Transforms size keep growing. #363

Open
@naserpiltan

Description

@naserpiltan

Issue guidelines

Issue Checklist

  • I have searched open or closed issues for my problem and found nothing related or helpful.
  • I have read the Documentation and found nothing related to my problem.
  • I have gone through the Bonus Examples and FAQs and found nothing related or helpful.

Describe your Question

Hello and thank you for sharing your great work. I was testing the code provided in the video stabilization library and bumped into something weird at this line :

# save this transformation
self.__transforms.append([dx, dy, da])
# calculate path from cumulative transformations sum
I checked the size of the self.__transforms variable and noticed that it keeps increasing throughout the video. If you use a camera for live-streaming and let it run for a long time, it will consume and eventually exhaust the memory. I tried to fix it by changing it to a queue and removing the first item at the end of each frame, but it worsened the final result. I wanted to ask you if this was intentional or a bug.

Terminal log output(Optional)

No response

Python Code(Optional)

No response

VidGear Version

0.3.0

Python version

3.8.0

Operating System version

Windows

Any other Relevant Information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUG 🐛Vidgear api's error, flaw or faultPOSTPONED ⌛This issue/PR is postponed for later due to some missing resources.PR WELCOMED 📬Related Pull Requests are welcomed for this issue!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions