Skip to content

how to use BackgroundSubtractMOG2{} function #208

@AshinCarlXiao

Description

@AshinCarlXiao

As lack of documentation, I can't find the right way to use BackgroundSubtractMOG2{} function. Currently I use like the following,

local cv = require 'cv' require 'cv.cudabgsegm' require 'cv.videoio' local mog2 = cv.cuda.BackgroundSubstractorMOG2{} local cap = cv.VideoCapture{filename='1.mp4'} local _, frameCV = cap:read{} local mask mog2:apply{image=frameCV, fgmask=mask}

the error information is: missing declaration for symbol 'BackgroundSubtractor_applyCuda'
Does anyone know how to use the BackgroundSubtractMOG2{} function? Thanks so much.

by the way, the video is loaded successfully, frameCV got the right value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions