you can try doing frame differencing and setting a specific threshold through there. you can use either [jit.op @op absdiff] or cv.jit.framesub as theyre the same thing
if this is from a live camera you are always going to get some manner of camera noise
jit.ravg would be another way though...you could also try jit.slide as a way to smooth things out