Low cost hand waving detection

to find motion frequency, you’d need an image sequence

however, opencv has Background Subtraction Methods , might get you started easier