1 | initial version |
Though @berak answer is valid, refer to my answer if
Since images are numpy arrays in OpenCV, you can leverage scikit learn for incremental PCA which allows you to declare your desired batch size. Here's an example of how to use it.