Make your parallel NumPy code fast: the secret sauce

When dealing with parallel processing of large NumPy arrays such as image or video data, you should be aware of this simple approach to speeding up your code.

Image by the author on Canva

Multiprocessing versus Concurrency in Python

Make your video reading code faster

If you are working with video in Computer Vision, these libraries might help you make your code more efficient with only a few lines of code.

Photo by Felix Mittermeier on Unsplash

The typical way to read videos in Python

  • It is not optimised for speed
  • OpenCV is not designed as a media library. This one may surprise you (it certainly did me!) but the developers only added the ability to read videos like this for “demo purposes” initially

Benjamin Lowe

AI Engineer and Scientist

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store