Jump to content

interfacing OpenCV with php


vks_foe

Recommended Posts

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??

 

 

Link to comment
https://forums.phpfreaks.com/topic/239336-interfacing-opencv-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.