1 | initial version |
when you use the VideoCapture object, the set member function is what you need to check (with the property CV_CAP_PROP_FPS).
For Android devices, I know it's a pain because there are so many cameras and I doubt they all support that feature.
What I would recommend is to multi-thread your code: have one thread that keeps calling ::grab(), and your other slower thread that calls ::retrieve() on the latest grabbed frame and then processes an image as slowly as it wants.
2 | No.2 Revision |
when you use the VideoCapture object, the set member function is what you need to check (with the property CV_CAP_PROP_FPS).
For Android devices, I know it's a pain because there are so many cameras and I doubt they all support that feature.
What I would recommend is to multi-thread your code: have one thread that keeps calling ::grab(), and your other slower thread that calls ::retrieve() on the latest grabbed frame and then processes an image as slowly as it wants.wants.