I have the following code in which I am reading data from folder, I want to limit the number of frame rate to 5fps, 10fps,15fps,20fps,25fps being read from a folder. When I