vks_foe Posted June 14, 2011 Share Posted June 14, 2011 Hi, I have an executable file developed using opencv library in c. I want to execute it from my website (webserver : apache) using a php script. The problem i'm facing is that, the executable code opens a window(kind of gui, opened using cvNamedWindow) when called from terminal but it doesn't do that when called from the embedded php script. For execution i have tried exec, system, passthru etc but all these failed. to be more clear : name of executable -> gui, name of phpscript(page) ->abcd.php 1. @terminal if i type "./gui" ... window opens. 2. @ terminal, if itype "php abcd.php" window opens 3. abcd.php is part of my website. In web browser if i open "http://...../abcd.php", window DOESNOT open. Although other things in the executable work perfectly. They get printed if i pass them back as arguments to exec. Any solutions?? Quote Link to comment https://forums.phpfreaks.com/topic/239336-interfacing-opencv-with-php/ Share on other sites More sharing options...
vks_foe Posted June 14, 2011 Author Share Posted June 14, 2011 I have attached my files.. gui.txt should be renamed to "gui.c" and can be compiled as gcc -ggdb -I/usr/include/opencv -pthread -lcxcore -lcv -lhighgui -lml gui.c -o gui [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/239336-interfacing-opencv-with-php/#findComment-1229516 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.