Do by OpenCV GPU API + SWIG You can easy call it with python.
-
- Please take care make.sh in first. Please correct the path in this file according to your path.
-
- Then to do ./make.sh
-
- cd to sample. do ./test.py in your terminator.
bobliu@bob_PC:~/Work/code/OpenCV/myself/py_cv2_gpu$ ./make.sh bobliu@bob_PC:~/Work/code/OpenCV/myself/py_cv2_gpu$ cd sample/ bobliu@bob_PC:~/Work/code/OpenCV/myself/py_cv2_gpu/sample$ ./test.py count = 1 [0.9927348494529724, 357.0, 213.0] Now just finish one function. You can easy to add other function following this code.
- http://docs.scipy.org/doc/numpy/reference/swig.interface-file.html
- http://www.swig.org/Doc1.3/Python.html#Python_nn9
Bob.Liu in 2016.07.25 https://github.com/BobLiu20/py_cv2_gpu