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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.