Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use BackgroundSubtractMOG2{} function #208

Open
AshinCarlXiao opened this issue Nov 19, 2018 · 0 comments
Open

how to use BackgroundSubtractMOG2{} function #208

AshinCarlXiao opened this issue Nov 19, 2018 · 0 comments

Comments

@AshinCarlXiao
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant