I want to know if it is possible to use opencv gpu functions like here ? Or should I wrap it in a python class.
Right now, OpenCV 2.4.7 does not support the GPU module on OpenCV-Python .
This means that you must write the wrappers yourself .
To answer the question in the fbence comment in the accepted answer, this is now possible with OpenCV 3 and Python 2.7+ or Python 3+. However, the OpenCV 3 GPU module must be compiled from the source.
Assuming you are running on a Linux system, you can follow these guidelines: