Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use cv::parallel_for_ from OpenCV for processing images if your algorithm allows it. It uses pthreads or TBB on Android, depending on your OpenCV library build environment and options.

Some algorithms in OpenCV are implemented using mentioned parallelization routine, you can change global behavior by calling cv::setNumThreads.

If your algorithm can not be implemented to process image in several threads, probably you can use pthreads functions to process each frame in separate thread, but this question is out of scope.