Ask Your Question

Revision history [back]

How to run OpenCV feature homography program from PHP exec() function?

I have installed OpenCV 3.3.0 version in ubuntu 16.04 by cloning the git repository with python 3.5. I want to run the feature homography program using PHP exec() function. The sample provided in the OpenCV folder runs perfectly on the python shell but it fails to import cv2 when I try to run it through PHP. Is there any extra care to be taken while running it through PHP ?

click to hide/show revision 2
retagged

updated 2017-08-17 02:32:15 -0600

berak gravatar image

How to run OpenCV feature homography program from PHP exec() function?

I have installed OpenCV 3.3.0 version in ubuntu 16.04 by cloning the git repository with python 3.5. I want to run the feature homography program using PHP exec() function. The sample provided in the OpenCV folder runs perfectly on the python shell but it fails to import cv2 when I try to run it through PHP. Is there any extra care to be taken while running it through PHP ?