Skip to content

solving a bug about ConsecutiveFramesWithoutAMatch #5

@SabraHashemi

Description

@SabraHashemi

there is a problem in code for sequenced blobs counter
every time we add a blob to existing blobs we must recount , because blob is alive and we want to find sequences of frames that blob is not appear,
without this line we are count all frames that blob is disappear

void addBlobToExistingBlobs(Blob& currentFrameBlob, std::vector& existingBlobs, int& intIndex) {
existingBlobs[intIndex].currentContour = currentFrameBlob.currentContour;
existingBlobs[intIndex].currentBoundingRect = currentFrameBlob.currentBoundingRect;
existingBlobs[intIndex].centerPositions.push_back(currentFrameBlob.centerPositions.back());
existingBlobs[intIndex].dblCurrentDiagonalSize = currentFrameBlob.dblCurrentDiagonalSize;
existingBlobs[intIndex].dblCurrentAspectRatio = currentFrameBlob.dblCurrentAspectRatio;
existingBlobs[intIndex].blnStillBeingTracked = true;
existingBlobs[intIndex].blnCurrentMatchFoundOrNewBlob = true;
existingBlobs[intIndex].intNumOfConsecutiveFramesWithoutAMatch=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