1 | initial version |
Since you do the heavy transformation and also wait for keypresses (why?) you will get frames from the camera much slower than 30 fps. Perhaps you could stream to a file and then as second phase convert the file frame by frame. Or else, measure what the system can really do and use that as output fps.