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.
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.