Signal in frequency domain with OpenCV dft
Your sine wave should use 2pi instead of frame rate.  Also, your frequency data should have window size/2 points and go from 0 to frame rate/2, not frame rate.