Skip to content

background extraction always uses all frames #3

@mihsamusev

Description

@mihsamusev

Independent on the "Frame count box" in background tab background subtraction uses all the original frames for background extraction, even though the extractor is initialized with the correct desired frame count:

def extractBackground(self, method, **kwargs):
self.bg_extractor = BackgroundExtractor(**kwargs)
self.bg_extractor.extract(self._originalFrames)
self.originalBgFrame = self.bg_extractor.get_background()

def extract(self, frames):
rangeImgs = []
newSizes = []
# Prepare range images
for f in frames:
newSize, rangeImg = self.reshape2scanlines(f.distance)
rangeImgs.append(rangeImg)
newSizes.append(newSize[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions