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

asked 2017-08-17 01:04:00 -0600

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

berak gravatar image

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 ?

edit retag flag offensive close merge delete

Comments

your php version is probably running oon a different box / architecture, than your python one.

are you even sure, cv2.so is installed there ?

berak gravatar imageberak ( 2017-08-18 07:30:23 -0600 )edit

R u using raspberry pi 3 or pc? I had same issues as ur using raspberry pi 3

supra56 gravatar imagesupra56 ( 2017-08-18 20:18:52 -0600 )edit

Btw, I'm running Stretch on RPI 3.

supra56 gravatar imagesupra56 ( 2017-08-18 20:21:10 -0600 )edit